Qiskit / qiskit

Qiskit is an open-source SDK for working with quantum computers at the level of extended quantum circuits, operators, and primitives.
https://www.ibm.com/quantum/qiskit
Apache License 2.0
5.31k stars 2.38k forks source link

Classical register instructions for simulators #6939

Open Lolcroc opened 3 years ago

Lolcroc commented 3 years ago

What is the expected behavior?

QuantumCircuits are very rich in operations on qubits, but lack operations on classical bits. The feature request are classical operations (logic gates) on classical bits, such as NOT/CNOT (acting "in-place" on the classical register) that are part of the QuantumCircuit itself.

Reasoning

kdk commented 3 years ago

Thanks for bringing this up, @Lolcroc . We're planning enhanced support for classical instructions and data types as part of support for the new set of features available in OpenQASM 3 ( https://qiskit.github.io/openqasm/language/classical.html ).

HuangJunye commented 2 years ago

Are we still planning to fix this issue for 0.20?

jakelishman commented 2 years ago

No, this is dynamics circuit work, so it's pushed til at least 0.21.