Qubit
- class braket.registers.qubit.Qubit(index: int)[source]
Bases:
intA quantum bit index. The index of this qubit is locally scoped towards the contained circuit. This may not be the exact qubit index on the quantum device.
Creates a new
Qubit.- Parameters:
index (int) – Index of the qubit.
- Raises:
ValueError – If
indexis less than zero.- Returns:
Qubit – Returns a new Qubit object.
Examples
>>> Qubit(0) >>> Qubit(1)