Japanese
言語
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

Qubit

class Qubit(register=None, index=None)[ソース]

ベースクラス: Bit

Implement a quantum bit.

Creates a qubit.

パラメータ
  • register (QuantumRegister) – Optional. A quantum register containing the bit.

  • index (int) – Optional. The index of the bit in its containing register.

例外

CircuitError – if the provided register is not a valid QuantumRegister

Attributes

index

Get bit’s index.

register

Get bit’s register.