pyQuil
v2.2.0
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
Exercises
Changelog
Introduction to Quantum Computing
API Reference
Program
Program.instructions
Program.defined_gates
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.copy
Program.pop
Program.dagger
Program.__getitem__
Utility Functions
Gates and Instructions
Pauli Operators
Quantum Computer
Compilers
QAMs
Devices
Wavefunction Methods
Noise Models
Operator Estimation
Man Pages
QVM Man Page
QUILC Man Page
pyQuil
Docs
»
Program
»
Program.__getitem__
Edit on GitHub
Program.__getitem__
¶
Program.
__getitem__
(
index
)
[source]
¶
Allows indexing into the program to get an action.
Parameters:
index
– The action at the specified index.
Returns:
Read the Docs
v: v2.2.0
Versions
latest
stable
v2.2.0
v2.1.1
v2.1.0
v2.0.1
v2.0.0
1.9
Downloads
On Read the Docs
Project Home
Builds
Free document hosting provided by
Read the Docs
.