pyQuil
v2.0.1
Installation and Getting Started
Forest 2.0: Migration Guide
Programs and Gates
The Quantum Computer
The Wavefunction Simulator
The Quil Compiler
Noise and Quantum Computation
Advanced Usage
Exercises
Source Code Documentation
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
Quantum Computer
Compilers
QAMs
Devices
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.0.1
Versions
latest
stable
v2.0.1
v2.0.0
1.9
Downloads
On Read the Docs
Project Home
Builds
Free document hosting provided by
Read the Docs
.