Note
This is the documentation for the current state of the development branch of Qiskit Experiments. The documentation or APIs here can change prior to being released.
CliffordUtils¶
- class CliffordUtils[source]¶
Utilities for generating one- and two-qubit Clifford circuits and elements.
Attributes
Methods
Return the 1-qubit clifford element corresponding to num where num is between 0 and 23.
CliffordUtils.clifford_1_qubit_circuit
(cls, num)Return the 1-qubit clifford circuit corresponding to
num
, wherenum
is between 0 and 23.Return the 2-qubit clifford element corresponding to
num
, wherenum
is between 0 and 11519.CliffordUtils.clifford_2_qubit_circuit
(cls, num)Return the 2-qubit clifford circuit corresponding to num where num is between 0 and 11519.
CliffordUtils.random_clifford_circuits
(cls, ...)Generate a list of random clifford circuits
CliffordUtils.random_cliffords
(cls, num_qubits)Generate a list of random clifford elements