gates#
Gates in a discopy.quantum.circuit.Circuit
.
Summary#
A self-conjugate box, i.e. where the transpose is the dagger. |
|
An anti-conjugate box, i.e. where the conjugate is the dagger. |
|
Discard n qubits. |
|
Maximally-mixed state on n qubits. |
|
Measure n qubits into n bits. |
|
Controlled preparation, i.e. encode n bits into n qubits. |
|
Quantum gates, i.e. unitaries on n qubits. |
|
Classical gates, i.e. from digits to digits. |
|
Takes a bit, returns two copies of it. |
|
Takes two bits in, returns them if they are equal. |
|
Classical state for a given string of digits of a given dimension. |
|
Implements qubit preparation for a given bitstring. |
|
Implements qubit post-selection for a given bitstring. |
|
Abstract class for controled quantum gates. |
|
Abstract class for parametrized boxes in a quantum circuit. |
|
Abstract class for rotation gates. |
|
X rotations. |
|
Y rotations. |
|
Z rotations. |
|
Controlled U1 rotations. |
|
Controlled Z rotations. |
|
Controlled X rotations. |
|
Scalar, i.e. quantum gate with empty domain and codomain. |
|
Mixed scalar, i.e. where the Born rule has already been applied. |
|
Square root. |