Korean
언어
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.