6
$\begingroup$

I've just started to mess about with QISKit on Python and one thing is confusing me a fair bit.

Given that we are building Quantum Circuits what is the need for a classical register ?

Is it because the collapsed state must be classical ?

$\endgroup$
2
$\begingroup$

Once we measure a qubit, we get some classical information out. This is something we need to keep track of. We need it to look at the outputs of our computations, or use them as part of classical control within an algorithm. For that reason, it can be useful to have a specific object in a quantum SDK that keeps track of this classical information, and does so in a way that parallels how qubits are dealt with. This is the approach taken by QISKit.

$\endgroup$
3
$\begingroup$

Quantum computations depend on classical control: A classical computer, driven by a classical algorithm, suffices to apply the quantum gates in sequence. In some algorithms (such as quantum teleportation), the gate to be applied depends on an earlier measurement result. Hence a store for measurement results (and, possibly, calculations using it) is helpful and needed in general.

$\endgroup$
  • $\begingroup$ So would I be correct in understanding that the point is one of pragmatic storage? $\endgroup$ – Jake Xuereb Aug 19 '18 at 15:50
  • $\begingroup$ Yes, absolutely. $\endgroup$ – pyramids Aug 20 '18 at 4:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.