Closed liu-zixiong closed 1 year ago
@kevincsmith has mentioned that this behaviour is probably arising from floating point precision and its interaction with qiskit's implementation of the to_statevector()
method. Most likely not a bosonic qiskit issue. Resolving report.
Hi everyone, I'm trying to run a noise pass on a circuit with 20 cv_delay gates and 20 save_statevector() functions. The goal is to save a snapshot of the state as it transforms under consecutive noise passes. This circuit is run without discretize on.
The issue is that trace_out_qubits().to_statevector() will start to fail towards the later cv_delay gates if the gate duration is short (10ns instead of 100ns). Below is a circuit demonstrating the issue. The circuit is only supposed to trace out a single ancilla qubit from the circuit statevector, and the statevector doesn't look too difficult. Yet it tends to fail.
I suspect this is because noise is applied approximately with the noise pass? Or would the team suspect something else?