Closed samanthavbarron closed 3 years ago
You are passing a measurement basis as a preparation basis which is the cause of this error. Doing
tomo = ProcessTomography(
circuit=circ,
measurement_basis=PauliMeasurementBasis(),
measurement_qubits=None,
preparation_basis=PauliPreparationBasis(),
preparation_qubits=None,
basis_indices=None,
qubits=None
)
or just the following since you are using default args for everything
tomo = ProcessTomography(circuit=circ)
should work.
Oh, thanks! I guess I forgot to change the line when I copied it.
Informations
MacOS Big Sur
What is the current behavior?
The analysis step of the process tomography experiment raises an error without completing.
Steps to reproduce the problem
The following script produces the error below.
What is the expected behavior?
The tomography experiment should run.
Suggested solutions
Not sure! I'm not familiar with the internals of
qiskit-experiments
yet.