English
Languages
English
Japanese
German
Korean
Portuguese, Brazilian
French
Shortcuts

qiskit.circuit.Clbit

class Clbit(register, index)[source]

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__(register, index)[source]

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

index

Get bit’s index.

register

Get bit’s register.

property index

Get bit’s index.

property register

Get bit’s register.