circuit

package
Version: v0.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 4, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Qubit

type Qubit struct {
	// contains filtered or unexported fields
}

func NewQubit

func NewQubit(z ...complex128) *Qubit

func One

func One() *Qubit

func Zero

func Zero() *Qubit

func (*Qubit) Measure

func (q *Qubit) Measure() Qubiter

func (*Qubit) Normalize

func (q *Qubit) Normalize() *Qubit

func (*Qubit) Probability

func (q *Qubit) Probability() []float64

func (*Qubit) String

func (q *Qubit) String() string

type Qubiter

type Qubiter interface {
	Measure() Qubiter
	Probability() []float64
}

Qubiter - abstractio interface of qubit

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL