Skip to main contentIBM Quantum Documentation
This page is from an old version of Qiskit SDK and does not exist in the latest version. We recommend you migrate to the latest version. See the release notes for more information.

qiskit.circuit.Clbit

class Clbit(register, index)

GitHub

Implement a classical bit.

Creates a classical bit.

Parameters

  • register (ClassicalRegister) – a classical register.
  • index (int) – the index to insert the bit

Raises

CircuitError – if the provided register is not a valid ClassicalRegister

__init__

__init__(register, index)

Creates a classical bit.

Parameters

  • register (ClassicalRegister) – a classical register.
  • index (int) – the index to insert the bit

Raises

CircuitError – if the provided register is not a valid ClassicalRegister


Methods

__init__(register, index)Creates a classical bit.

Attributes

indexGet bit’s index.
registerGet bit’s register.

index

Get bit’s index.

register

Get bit’s register.

Was this page helpful?
Report a bug or request content on GitHub.