Operations Methods |
The Operations type exposes the following members.
Name | Description | |
---|---|---|
AD |
Amplitude Damping Channel using two Kraus operators (always put the most probable one first)
| |
Adj |
Performs the adjoint of the parent gate.
This only works if the parent gate is a unitary gate.
| |
BC |
Performs a gate under classical control.
The parent gate will be executed if the control qubit has a measured value of One.
| |
BCany |
Performs a gate under classical control.
This gate allows an arbitrary condition to be specified.
The parent gate will be executed if the condition function evaluates to true.
| |
CCgate |
Performs a parent gate under two-qubit quantum control.
The parent must be a unitary gate.
| |
CCNOT |
Performs a Toffoli or Controlled-Controlled-NOT gate
| |
Cgate |
Performs a parent gate under quantum control.
The parent must be a unitary gate.
| |
CgateNC |
Performs a parent gate under quantum control.
The parent must be a unitary gate.
The resulting gate is not cached.
| |
CNOT |
Performs a quantum-controlled NOT gate
| |
CZ |
Performs a quantum-controlled Pauli Z gate.
| |
DP |
Depolarizing channel using four Kraus operators (always put the most probable one first)
| |
H |
Performs a Hadamard gate.
| |
I |
Performs a Pauli I (identify) gate.
| |
JM |
Performs a joint parity measurement in the given basis on a list of qubits.
The result of the measurement is stored in the Ket's symbol table.
The state vector is collapsed according to the result of the measurement.
| |
JMx |
Performs a joint parity measurement in the X basis on a list of qubits.
The result of the measurement is stored in the Ket's symbol table.
The state vector is collapsed according to the result of the measurement.
| |
JMz |
Performs a joint parity measurement in the computational basis on a list of qubits.
The result of the measurement is stored in the Ket's symbol table.
The state vector is collapsed according to the result of the measurement.
| |
Label |
Adds a label to a circuit drawing.
The label will appear above the line representing the qubit,
in the center of the current column.
The label will take up no logical space; it will not fill the current cell.
| |
LabelC |
Adds a label to a circuit drawing.
The label be centered in and will fill the current cell.
| |
LabelCD |
Adds a framed label to a circuit drawing.
The label be centered in and will fill the current cell.
The label will have a box drawn tightly around it.
| |
LabelD |
Adds a label to a circuit drawing.
The label will appear below the line representing the qubit,
in the center of the current column.
The label will take up no logical space; it will not fill the current cell.
| |
LabelL |
Adds a label to a circuit drawing.
The label will appear centered on the line representing the qubit,
on the left side of the current column.
The label will take up no logical space; it will not fill the current cell.
| |
LabelR |
Adds a label to a circuit drawing.
The label will appear centered on the line representing the qubit,
on the right side of the current column.
The label will take up no logical space; it will not fill the current cell.
| |
LabelRaw |
Adds a raw label to a circuit drawing.
The provided string should contain the
Q-Circuit
commands used to draw the label.
Note that labels drawn using this gate will only appear when rendered to "qc" format.
| |
LabelU |
Adds a label to a circuit drawing.
The label will appear above the line representing the qubit,
in the center of the current column.
The label will take up no logical space; it will not fill the current cell.
| |
LoadCache |
Preload the cache with basic gates: Paulis, measurement, Hadamard, phase, CNOT, Toffoli, swap, and T.
| |
M |
Performs a measurement of a single qubit in the computational basis.
The result of the measurement is stored in the measured qubit;
see Qubit.Bit.
The state vector is collapsed according to the result of the measurement.
The measured qubit becomes "classical" and must be reset before any further
quantum gates are performed on it.
| |
Native |
Performs any desired native operations at this point in the circuit.
| |
NativeDbg |
Performs any desired native operations at this point in the circuit.
This version doesn't appear in a circuit drawing.
| |
PC |
Performs a gate based on a classical condition.
The parent gate is executed if the test function returns true.
Typically this condition is based on the results of one or more joint parity measurements.
| |
R |
Performs a 2pi/2^K rotation gate gate.
| |
Reset |
Resets a qubit to a specified initial state after it has been measured.
This allows quantum gates to be performed against the collapsed qubit.
See the | |
Restore |
Resets a qubit after it has been measured.
This allows quantum gates to be performed against the collapsed qubit.
The initial state of the qubit will be its last measured state.
See the | |
S |
Performs a phase gate.
| |
SWAP |
Performs a swap gate, exchanging the quantum states of two qubits.
| |
T |
Performs a pi/8 gate.
| |
T_BC |
Performs a transverse classically-controlled gate.
| |
Transverse |
Expands a parent gate to a transverse version.
| |
X |
Performs a Pauli X gate.
| |
Y |
Performs a Pauli Y gate.
| |
Z |
Performs a Pauli Z gate.
|