qiskit.circuit.Qubit¶
-
class
Qubit
(register, index)[código fonte]¶ Implement a quantum bit.
Creates a qubit.
- Parâmetros
register (QuantumRegister) – a quantum register.
index (int) – the index to insert the qubit
- Levanta
CircuitError – if the provided register is not a valid
QuantumRegister
-
__init__
(register, index)[código fonte]¶ Creates a qubit.
- Parâmetros
register (QuantumRegister) – a quantum register.
index (int) – the index to insert the qubit
- Levanta
CircuitError – if the provided register is not a valid
QuantumRegister
Methods
__init__
(register, index)Creates a qubit.
Attributes
-
property
index
¶ Get bit’s index.
-
property
register
¶ Get bit’s register.