Shortcuts

qiskit.circuit.Qubit

class Qubit(register, index)[source]

Implement a quantum bit.

Creates a qubit.

Parameters
  • register (QuantumRegister) – a quantum register.

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

Raises

CircuitError – if the provided register is not a valid QuantumRegister

__init__(register, index)[source]

Creates a qubit.

Parameters
  • register (QuantumRegister) – a quantum register.

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

Raises

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.

You are viewing lang: English
Languages
English
Japanese
German
Korean