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.
PauliPreparationBasis¶
- class PauliPreparationBasis[source]¶
Minimal 4-element Pauli measurement basis.
This is a minimal size 4 preparation basis where each qubit index corresponds to the following initial state preparation circuits and density matrices:
Table 2 Single-qubit preparation circuits and states¶ Index
State
Preparation Circuit
Density Matrix
0
Zp
-[I]-[[1, 0], [0, 0]]1
Zm
-[X]-[[0, 0], [0, 1]]2
Xp
-[H]-[[0.5, 0.5], [0.5, 0.5]]3
Yp
-[H]-[S]-[[0.5, -0.5j], [0.5j, 0.5]]Initialize Pauli preparation basis
Attributes
Return the basis name
Methods
PauliPreparationBasis.circuit(index[, qubits])Return the basis preparation circuit.
Return the shape for the specified number of indices.
PauliPreparationBasis.matrix(index[, qubits])Return the density matrix data array for the index and qubits.
Return the shape of subsystem dimensions of the state attr:~matrix.