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.
LocalPreparationBasis.matrix¶
- LocalPreparationBasis.matrix(index, qubits=None)[source]¶
Return the density matrix data array for the index and qubits.
This state is used by tomography fitters for reconstruction and should correspond to the target state for the corresponding preparation
circuit()
.- Parameters:
index (
Sequence
[int
]) – a list of subsystem basis indices.qubits (
Optional
[Sequence
[int
]]) – Optional, the physical qubit subsystems for the index. If None this will be set to(0, ..., N-1)
for a length N index.
- Returns:
The density matrix prepared by the specified index and qubits.