Korean
언어
English
Japanese
German
Korean
Portuguese, Brazilian
French
Shortcuts

qiskit.circuit.Qubit

class Qubit(register, index)[소스]

Implement a quantum bit.

Creates a qubit.

매개변수
  • register (QuantumRegister) – a quantum register.

  • index (int) – the index to insert the qubit

예외

CircuitError – if the provided register is not a valid QuantumRegister

__init__(register, index)[소스]

Creates a qubit.

매개변수
  • register (QuantumRegister) – a quantum register.

  • index (int) – the index to insert the qubit

예외

CircuitError – if the provided register is not a valid QuantumRegister

Methods

__init__(register, index)

Creates a qubit.

Attributes

index

Get bit’s index.

register

Get bit’s register.

property index

Get bit’s index.

property register

Get bit’s register.