Closed eendebakpt closed 1 year ago
This is not a bug in SDK but a Circuit Error as the error message is saying.
The QuantumCircuit that is defined with QuantumCircuit(1)
has 1 qubit registers and no classical bit registers.
This means that the measurement is generating the error because there is no classical register for the result.
To fix the error in this example, QuantumCircuit should be defined as: QuantumCircuit(1, 1)
.
This is not a bug in SDK but a Circuit Error as the error message is saying.
The QuantumCircuit that is defined with
QuantumCircuit(1)
has 1 qubit registers and no classical bit registers. This means that the measurement is generating the error because there is no classical register for the result.To fix the error in this example, QuantumCircuit should be defined as:
QuantumCircuit(1, 1)
.
Sorry, that was a typo in the script. Also with QuantumCircuit(1, 1)
I get an error
Resolved by upgrading the quantuminspire package to the latest version on pypi.
Describe the bug
When running a circuit with a single shot an error is generated. Update: fix typo in circuit
To Reproduce A minimal example:
Error generated:
CircuitError: 'Index 0 out of range for size 0.'