Qubit
class Qubit(register, index)
Implement a quantum bit.
Creates a qubit.
Parameters
- register (QuantumRegister) – a quantum register.
- index (int) – the index to insert the qubit
Raises
CircuitError – if the provided register is not a valid QuantumRegister
Attributes
index
Get bit’s index.
register
Get bit’s register.
Methods
Was this page helpful?
Report a bug or request content on GitHub.