[<SerializableAttribute>] type Ket = class end
Thetype exposes the following members.
Creates an empty Ket vector.
Creates a populated Ket vector.
Count of Qubits in state
Get a specific qubit in our state (by qubit ID)
Max entangled that we've seen (reset during Reset())
Get all qubits in ID order
Force the pseudo-random number gen to a known initial state
Ask for a random number generator
Symbol table used to store the results of joint parity measurements.
Trace a circuit run (0=none 1=to log 2=to log and console, 3=Ket dumps)
Adds a new qubit to the state with a classical Bit value. The new qubit is unentangled and has the provided state. Note that the new qubit is not considered measured.
Adds a new qubit to the state with a complex state vector. The new qubit is unentangled and has the provided state.
Adds multiple qubits to the state, all with the same classical Bit value. The new qubits are unentangled and have the provided state. Note that the new qubits are not considered measured.
Makes a new Ket that is a deep copy of this Ket.
Applies a function to each Qubit in the state vector, returning the list of qubit IDs for which the function returned true. This method is usually used to apply noise to the state.
Dump this state vector.
Dump the portion of this state vector that includes a specific qubit and all of the qubits it is entangled with. If this Ket is a product state, then only the factor containing the specified qubit is dumped.
Get the entanglement entropy
Determines whether the specified object is equal to the current object.(Inherited from Object.)
Serves as the default hash function.(Inherited from Object.)
Gets the Type of the current instance.(Inherited from Object.)
Joins another Ket to the end of this one (added Ket is NOT usable after this)
Get L2 Norm of the difference of two ket vectors
Get the probability of measuring 1 for a single qubit
Get the probability of measuring odd parity for a set of qubits
Get the state probabilities for a list of qubits (l.e. 10 qubits)
Finds the purity of each qubit in this Ket. NOT OPTIMIZED.
Reads a new state vector from a binary stream. Note that this routine is only intended to read vectors written with the Write method.
Reads a new state vector from a file. Note that this routine is only intended to read vectors written with the Write method.
Resets this Ket to an initial state with a specified number of qubits.
Treats this Ket as if all of its qubits are entangled.
Gets a string representation of this Ket. This string may be extremely long; in general, it will have 2^N lines if there are N qubits in the Ket. Generally it is better to use the Dump method instead.(Overrides ObjectToString.)
Writes this state vector to a binary stream.
Writes this state vector to a file.