quil.program
Given an instruction index within the resulting expansion, return the locations in the source which were expanded to generate that instruction.
This is O(n)
where n
is the number of first-level calibration expansions performed.
The Python wrapper for [CalibrationSource::Calibration
], creating a [PyCalibrationSource
] and taking a Python argument.
The Python wrapper for [CalibrationSource::MeasureCalibration
], creating a [PyCalibrationSource
] and taking a Python argument.
Directly return the Python version of the variant discriminant wrapped by this value; i.e., performs the match CalibrationSource::Variant(x) => x
for every variant constructor in [CalibrationSource
]
Tests if this [PyCalibrationSource
] wraps a [CalibrationSource::calibration
] value
Returns x
if this [PyCalibrationSource
] wraps a CalibrationSource::calibration
(x); otherwise returns (Python) None
. On the Rust side, this corresponds to either Some(x)
or [None
].
Returns x
if this [PyCalibrationSource
] wraps a CalibrationSource::calibration
(x); otherwise raises a ValueError
. On the Rust side, this corresponds to either Ok(x)
or Err(...)
.
Tests if this [PyCalibrationSource
] wraps a [CalibrationSource::measure_calibration
] value
Given an instruction index within the resulting expansion, return the locations in the source which were expanded to generate that instruction.
This is O(n)
where n
is the number of source instructions.