qiskit.circuit.QuantumRegister¶
-
class
QuantumRegister
(size, name=None)[Quellcode]¶ Implement a quantum register.
Create a new generic register.
-
__init__
(size, name=None)¶ Create a new generic register.
Methods
__init__
(size[, name])Create a new generic register.
qasm
()Return OPENQASM string for this register.
Attributes
instances_counter
Get the register name.
prefix
Get the register size.
-
property
name
¶ Get the register name.
-
qasm
()[Quellcode]¶ Return OPENQASM string for this register.
-
property
size
¶ Get the register size.
-