pyQuil
latest
Installation and Getting Started
New in Forest 2 - Running on the QVM
New in Forest 2 - QuantumComputer
New in Forest 2 - Parametric Programs
New in Forest 2 - Other
Programs and Gates
The Quantum Computer
The Wavefunction Simulator
The Quil Compiler
Noise and Quantum Computation
Advanced Usage
Troubleshooting
Exercises
Changelog
Introduction to Quantum Computing
Quil-T
Quil-T
Getting Up and Running with Quil-T
Pulses and Waveforms
Parametric Compilation Examples
RAW-CAPTURE on Aspen-8
API Reference
Program
Program.instructions
Program.defined_gates
Program.calibrations
Program.waveforms
Program.frames
Program.out
Program.get_qubits
Program.is_protoquil
Program.__iadd__
Program.__add__
Program.inst
Program.gate
Program.defgate
Program.define_noisy_gate
Program.define_noisy_readout
Program.no_noise
Program.measure
Program.reset
Program.measure_all
Program.alloc
Program.declare
Program.wrap_in_numshots_loop
Program.while_do
Program.if_then
Program.get_calibration
Program.match_calibrations
Program.calibrate
Program.copy
Program.pop
Program.dagger
Program.__getitem__
Utility Functions
Gates and Instructions
Quil-T Waveforms
Pauli Operators
Quantum Computer
Compilers
QAMs
Devices
Simulators
Noise Models
Operator Estimation
Visualization
Experiment
pyQuil
Docs
»
Program
»
Program.alloc
Edit on GitHub
Program.alloc
¶
Program.
alloc
(
)
[source]
¶
Get a new qubit.
Return type
QubitPlaceholder
Returns
A qubit.
Read the Docs
v: latest
Versions
latest
stable
v2.27.0
v2.26.0
v2.25.0
v2.24.0
v2.23.2
v2.23.1
v2.23.0
v2.22.0
v2.21.1
v2.21.0
v2.20.0
v2.19.0
v2.18.0
v2.17.0
v2.16.0
v2.15.0
v2.14.0
v2.13.0
v2.12.0
v2.11.0
v2.10.0
v2.9.1
v2.9.0
v2.8.0
v2.7.2
v2.7.1
v2.7.0
v2.6.0
v2.5.2
v2.5.1
v2.5.0
v2.4.0
v2.3.0
v2.2.1
v2.2.0
v2.1.1
v2.1.0
v2.0.1
v2.0.0
1.9
quilt-demo
bye-bye-ini
Downloads
pdf
html
epub
On Read the Docs
Project Home
Builds
Free document hosting provided by
Read the Docs
.