Toffoli gate, or CCNOT gate
index or array of indexes
number of columns to skip
Controlled NOT gate, or CNOT gate
index or array of indexes
number of columns to skip
Use the last measure as the initial state of the qubit
index of the stream to use
Generate a random circuit
number of qubits
number of gates
Rotation around the X-axis by given angle
multiple of PI
number of columns to skip
Rotation around the Y-axis by given angle
multiple of PI
number of columns to skip
Rotation around the Z-axis by given angle
multiple of PI
number of columns to skip
Single qubit rotation with 3 Euler angles
[theta, phi, lambda] - multiples of PI
number of columns to skip
Update a gate parameter outside of a gate method
id of the parameter to update. Should be 'gateName.gateIndex.paramIndex' as in 'rx.0.0'
value to set. Can be a number of an instance of a pattern
PI rotation over X-axis, also known as NOT gate
number of columns to skip
The Wire class represents a single wire in a quantum circuit. They are represented in Zen as q0, q1, q2, etc. It uses the Quantum Circuit package to implement quantum gates. Some gates are documented here. See https://www.npmjs.com/package/quantum-circuit#implemented-gates for a list of all implemented gates.
Example