Struct quil::program::PyCalibrationSet
source · pub struct PyCalibrationSet(/* private fields */);Implementations§
source§impl PyCalibrationSet
impl PyCalibrationSet
pub fn new( py: Python<'_>, calibrations: Vec<PyCalibration>, measure_calibrations: Vec<PyMeasureCalibrationDefinition> ) -> PyResult<Self>
pub fn calibrations(&self, py: Python<'_>) -> PyResult<Vec<PyCalibration>>
pub fn measure_calibrations( &self, py: Python<'_> ) -> PyResult<Vec<PyMeasureCalibrationDefinition>>
pub fn expand( &self, py: Python<'_>, instruction: PyInstruction, previous_calibrations: Vec<PyInstruction> ) -> PyResult<Option<Vec<PyInstruction>>>
pub fn get_match_for_measurement( &self, py: Python<'_>, measurement: PyMeasurement ) -> PyResult<Option<PyMeasureCalibrationDefinition>>
pub fn get_match_for_gate( &self, py: Python<'_>, gate: PyGate ) -> PyResult<Option<PyCalibration>>
pub fn __len__(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn push_calibration( &mut self, py: Python<'_>, calibration: PyCalibration ) -> PyResult<()>
pub fn push_measurement_calibration( &mut self, py: Python<'_>, calibration: PyMeasureCalibrationDefinition ) -> PyResult<()>
pub fn extend( &mut self, py: Python<'_>, other: PyCalibrationSet ) -> PyResult<()>
pub fn to_instructions(&self, py: Python<'_>) -> PyResult<Vec<PyInstruction>>
Trait Implementations§
source§impl AsMut<<PyCalibrationSet as PyWrapper>::Inner> for PyCalibrationSet
impl AsMut<<PyCalibrationSet as PyWrapper>::Inner> for PyCalibrationSet
source§impl AsRef<CalibrationSet> for PyCalibrationSet
impl AsRef<CalibrationSet> for PyCalibrationSet
source§fn as_ref(&self) -> &CalibrationSet
fn as_ref(&self) -> &CalibrationSet
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Clone for PyCalibrationSet
impl Clone for PyCalibrationSet
source§fn clone(&self) -> PyCalibrationSet
fn clone(&self) -> PyCalibrationSet
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for PyCalibrationSet
impl Debug for PyCalibrationSet
source§impl From<&CalibrationSet> for PyCalibrationSet
impl From<&CalibrationSet> for PyCalibrationSet
source§fn from(inner: &CalibrationSet) -> Self
fn from(inner: &CalibrationSet) -> Self
Converts to this type from the input type.
source§impl From<CalibrationSet> for PyCalibrationSet
impl From<CalibrationSet> for PyCalibrationSet
source§fn from(inner: CalibrationSet) -> Self
fn from(inner: CalibrationSet) -> Self
Converts to this type from the input type.
source§impl From<PyCalibrationSet> for CalibrationSet
impl From<PyCalibrationSet> for CalibrationSet
source§fn from(wrapper: PyCalibrationSet) -> Self
fn from(wrapper: PyCalibrationSet) -> Self
Converts to this type from the input type.
source§impl PartialEq for PyCalibrationSet
impl PartialEq for PyCalibrationSet
source§fn eq(&self, other: &PyCalibrationSet) -> bool
fn eq(&self, other: &PyCalibrationSet) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PyClass for PyCalibrationSet
impl PyClass for PyCalibrationSet
source§impl PyClassImpl for PyCalibrationSet
impl PyClassImpl for PyCalibrationSet
source§const IS_BASETYPE: bool = false
const IS_BASETYPE: bool = false
#[pyclass(subclass)]
source§const IS_SUBCLASS: bool = false
const IS_SUBCLASS: bool = false
#[pyclass(extends=…)]
source§const IS_MAPPING: bool = false
const IS_MAPPING: bool = false
#[pyclass(mapping)]
source§const IS_SEQUENCE: bool = false
const IS_SEQUENCE: bool = false
#[pyclass(sequence)]
§type ThreadChecker = SendablePyClass<PyCalibrationSet>
type ThreadChecker = SendablePyClass<PyCalibrationSet>
This handles following two situations: Read more
type Inventory = Pyo3MethodsInventoryForPyCalibrationSet
§type PyClassMutability = <<PyAny as PyClassBaseType>::PyClassMutability as PyClassMutability>::MutableChild
type PyClassMutability = <<PyAny as PyClassBaseType>::PyClassMutability as PyClassMutability>::MutableChild
Immutable or mutable
§type BaseNativeType = PyAny
type BaseNativeType = PyAny
The closest native ancestor. This is
PyAny by default, and when you declare
#[pyclass(extends=PyDict)], it’s PyDict.fn items_iter() -> PyClassItemsIter
fn lazy_type_object() -> &'static LazyTypeObject<Self>
fn dict_offset() -> Option<isize>
fn weaklist_offset() -> Option<isize>
source§impl PyClassNewTextSignature<PyCalibrationSet> for PyClassImplCollector<PyCalibrationSet>
impl PyClassNewTextSignature<PyCalibrationSet> for PyClassImplCollector<PyCalibrationSet>
fn new_text_signature(self) -> Option<&'static str>
source§impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a PyCalibrationSet
impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a PyCalibrationSet
source§impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a mut PyCalibrationSet
impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a mut PyCalibrationSet
source§impl PyTryFrom<PyAny> for PyCalibrationSet
impl PyTryFrom<PyAny> for PyCalibrationSet
source§impl PyTryFrom<PyCalibrationSet> for CalibrationSet
impl PyTryFrom<PyCalibrationSet> for CalibrationSet
source§fn py_try_from(py: Python<'_>, item: &PyCalibrationSet) -> PyResult<Self>
fn py_try_from(py: Python<'_>, item: &PyCalibrationSet) -> PyResult<Self>
source§impl PyTryFrom<PyCalibrationSet> for PyCalibrationSet
impl PyTryFrom<PyCalibrationSet> for PyCalibrationSet
source§fn py_try_from(py: Python<'_>, item: &PyCalibrationSet) -> PyResult<Self>
fn py_try_from(py: Python<'_>, item: &PyCalibrationSet) -> PyResult<Self>
source§impl PyTypeInfo for PyCalibrationSet
impl PyTypeInfo for PyCalibrationSet
§type AsRefTarget = PyCell<PyCalibrationSet>
type AsRefTarget = PyCell<PyCalibrationSet>
Utility type to make Py::as_ref work.
source§fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
Returns the PyTypeObject instance for this type.
source§fn type_object(py: Python<'_>) -> &PyType
fn type_object(py: Python<'_>) -> &PyType
Returns the safe abstraction over the type object.
source§fn is_type_of(object: &PyAny) -> bool
fn is_type_of(object: &PyAny) -> bool
Checks if
object is an instance of this type or a subclass of this type.source§fn is_exact_type_of(object: &PyAny) -> bool
fn is_exact_type_of(object: &PyAny) -> bool
Checks if
object is an instance of this type.source§impl PyWrapper for PyCalibrationSet
impl PyWrapper for PyCalibrationSet
source§impl ToPyObject for PyCalibrationSet
impl ToPyObject for PyCalibrationSet
source§impl<'a> ToPython<PyCalibrationSet> for &'a CalibrationSet
impl<'a> ToPython<PyCalibrationSet> for &'a CalibrationSet
source§impl ToPython<PyCalibrationSet> for CalibrationSet
impl ToPython<PyCalibrationSet> for CalibrationSet
impl StructuralPartialEq for PyCalibrationSet
Auto Trait Implementations§
impl RefUnwindSafe for PyCalibrationSet
impl Send for PyCalibrationSet
impl Sync for PyCalibrationSet
impl Unpin for PyCalibrationSet
impl UnwindSafe for PyCalibrationSet
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<'a, T> FromPyObject<'a> for T
impl<'a, T> FromPyObject<'a> for T
source§impl<T> PyErrArguments for T
impl<T> PyErrArguments for T
source§impl<T> PyWrapperMut for T
impl<T> PyWrapperMut for T
source§fn as_inner_mut(&mut self) -> &mut Self::Inner
fn as_inner_mut(&mut self) -> &mut Self::Inner
Returns a mutable reference to the inner item. Read more