Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure error-checking happens before any modification
After the move of `QuantumCircuit.data` to Rust-space, some of the state modification had started happening before the error checking, which could potentially leave an in-place modification in a partially applied state if an exception triggered during processing. This also ensures that the qubits and clbits arguments are checked, even if the actual data being composed is empty.
- Loading branch information