8
$\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 Answers 2

3
$\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$
4
$\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$
2
  • $\begingroup$ So would I be correct in understanding that the point is one of pragmatic storage? $\endgroup$ Aug 19, 2018 at 15:50
  • $\begingroup$ Yes, absolutely. $\endgroup$
    – user1039
    Aug 20, 2018 at 4:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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