Gw mau tau q0 = cirq.NamedQubit('source') dari Cirq

# Line qubits can be created individually

# Or created in a range

# This will create LineQubit(0), LineQubit(1), LineQubit(2)

q0, q1, q2 = cirq.LineQubit.range(3)

# Grid Qubits can also be referenced individually

# Or created in bulk in a square

# This will create 16 qubits from (0,0) to (3,3)

qubits = cirq.GridQubit.square(4)Beberapa penyedia komputasi kuantum menyediakan tipe kubitnya sendiri. Contohnya, Pasqal menetapkan TwoDQubit dan ThreeDQubit untuk menyatakan topologi spesifik dari atom netral saat memvalidasi sirkuit-sirkuit.