Skip to main contentIBM Quantum Documentation
You are viewing the API reference for an old version of Qiskit SDK. Switch to latest version

Clbit

class Clbit(register, index)

GitHub(opens in a new tab)

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


Attributes

index

Get bit’s index.

register

Get bit’s register.


Methods

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