Interface definition of a qubit. Direct implementations of this interface should be
named Qubit.
| C# | Visual Basic | Visual C++ |
public interface IQubit : ICoveObject
Public Interface IQubit _ Implements ICoveObject
public interface class IQubit : ICoveObject
| All Members | Methods | ||||
| Icon | Member | Description |
|---|---|---|
| ApplyOperation(IQubitOperation) |
Apply the specified operation to the qubit
| |
| ApplyOperations(array<IQubitOperation>[]()[]) |
Apply mulitiple operations to a qubit
| |
| GetLabelOne()()() |
Get the representation of one
| |
| GetLabelZero()()() |
Get the representation of zero
| |
| GetLocation()()() |
Returns the location of the quantum resource
| |
| Measure()()() |
Measure the qubit- collapses it absolutely to
|0> xor |1>
| |
| MeasureWithLabel()()() |
Measure the qubit- collapses it absolutely to |0> xor |1>.
Instead of returning 0 or 1 like Measure() it returns the
string label of the result.
| |
| OperationHadamard()()() |
Perform the Hadamard operation on the qubit. This operation is
also known as Hadamard-Walsh and the square root of not.
| |
| OperationIdentity()()() |
Perform the identity operation on the qubit. This does not
change the state of the qubit.
| |
| OperationNot()()() |
Perform the Not operation on the qubit. This operation is also
known as the X gate.
| |
| OperationSGate()()() |
Perform the S gate operation, the phase gate, on the qubit.
| |
| OperationTGate()()() |
Perform the T gate operation, the pi/8 phase gate, on
the qubit.
| |
| OperationYGate()()() |
Perform the Y Gate operation on the qubit
| |
| OperationZGate()()() |
Perform the Z Gate operation on the qubit.
| |
| ResetTo(Object, Object) |
Reset the qubit to an arbitrary state
| |
| ResetToOne()()() |
Reset the qubit to |1>
| |
| ResetToZero()()() |
Reset the qubit to |0>
| |
| SetLabelOne(String) |
Set the label for one
| |
| SetLabels(String, String) |
Set both the label for |0> and label for |1> in one call
| |
| SetLabelZero(String) |
Set the label for zero
| |
| SetLocation(String) |
Set the location of the quantum resource
| |
| ToString()()() |
Get the string representation of the object
(Inherited from ICoveObject.) | |
| ToStringWithLabels()()() |
Get the string representation with the labels instead of
|0> and |1>
|