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.
Pauli6PreparationBasis¶
- class Pauli6PreparationBasis[source]¶
Over-complete 6-element Pauli preparation basis.
This is an over-complete size 6 preparation basis where each qubit index corresponds to the following initial state density matrices:
Table 3 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
Xm
-[H]-[Z]-
[[0.5, -0.5], [-0.5, 0.5]]
2
Yp
-[H]-[S]-
[[0.5, -0.5j], [0.5j, 0.5]]
3
Ym
-[H]-[Sdg]-
[[0.5, 0.5j], [-0.5j, 0.5]]
Initialize a fitter preparation basis.
- Parameters:
name – a name to identify the basis.
instructions – list of 1-qubit instructions for preparing states from the
state.default_states – Optional, default density matrices prepared by the input instructions. If None these will be determined by ideal simulation of the preparation instructions.
qubit_states – Optional, a dict with physical qubit keys and a list of density matrices prepared by the list of basis instructions for a specific qubit. The default states will be used for any qubits not specified in this dict.
- Raises:
QiskitError – If input states or instructions are not valid, or no instructions or states are provided.
Attributes
Return the basis name
Methods
Pauli6PreparationBasis.circuit
(index[, qubits])Return the basis preparation circuit.
Return the shape for the specified number of indices.
Pauli6PreparationBasis.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.