Struct quil::instruction::PyCalibration
source · pub struct PyCalibration(/* private fields */);Implementations§
source§impl PyCalibration
impl PyCalibration
source§impl PyCalibration
impl PyCalibration
source§impl PyCalibration
impl PyCalibration
source§impl PyCalibration
impl PyCalibration
pub fn new( py: Python<'_>, name: &str, parameters: Vec<PyExpression>, qubits: Vec<PyQubit>, instructions: Vec<PyInstruction>, modifiers: Vec<PyGateModifier> ) -> PyResult<Self>
Trait Implementations§
source§impl AsMut<<PyCalibration as PyWrapper>::Inner> for PyCalibration
impl AsMut<<PyCalibration as PyWrapper>::Inner> for PyCalibration
source§impl AsRef<Calibration> for PyCalibration
impl AsRef<Calibration> for PyCalibration
source§fn as_ref(&self) -> &Calibration
fn as_ref(&self) -> &Calibration
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Clone for PyCalibration
impl Clone for PyCalibration
source§fn clone(&self) -> PyCalibration
fn clone(&self) -> PyCalibration
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 PyCalibration
impl Debug for PyCalibration
source§impl From<&Calibration> for PyCalibration
impl From<&Calibration> for PyCalibration
source§fn from(inner: &Calibration) -> Self
fn from(inner: &Calibration) -> Self
Converts to this type from the input type.
source§impl From<Calibration> for PyCalibration
impl From<Calibration> for PyCalibration
source§fn from(inner: Calibration) -> Self
fn from(inner: Calibration) -> Self
Converts to this type from the input type.
source§impl From<PyCalibration> for Calibration
impl From<PyCalibration> for Calibration
source§fn from(wrapper: PyCalibration) -> Self
fn from(wrapper: PyCalibration) -> Self
Converts to this type from the input type.
source§impl PartialEq for PyCalibration
impl PartialEq for PyCalibration
source§fn eq(&self, other: &PyCalibration) -> bool
fn eq(&self, other: &PyCalibration) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PyClassImpl for PyCalibration
impl PyClassImpl for PyCalibration
source§const IS_BASETYPE: bool = true
const IS_BASETYPE: bool = true
#[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<PyCalibration>
type ThreadChecker = SendablePyClass<PyCalibration>
This handles following two situations: Read more
type Inventory = Pyo3MethodsInventoryForPyCalibration
§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<PyCalibration> for PyClassImplCollector<PyCalibration>
impl PyClassNewTextSignature<PyCalibration> for PyClassImplCollector<PyCalibration>
fn new_text_signature(self) -> Option<&'static str>
source§impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a PyCalibration
impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a PyCalibration
source§impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a mut PyCalibration
impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a mut PyCalibration
source§impl PyTryFrom<PyAny> for PyCalibration
impl PyTryFrom<PyAny> for PyCalibration
source§impl PyTryFrom<PyCalibration> for Calibration
impl PyTryFrom<PyCalibration> for Calibration
source§fn py_try_from(py: Python<'_>, item: &PyCalibration) -> PyResult<Self>
fn py_try_from(py: Python<'_>, item: &PyCalibration) -> PyResult<Self>
source§impl PyTryFrom<PyCalibration> for PyCalibration
impl PyTryFrom<PyCalibration> for PyCalibration
source§fn py_try_from(py: Python<'_>, item: &PyCalibration) -> PyResult<Self>
fn py_try_from(py: Python<'_>, item: &PyCalibration) -> PyResult<Self>
source§impl PyTypeInfo for PyCalibration
impl PyTypeInfo for PyCalibration
§type AsRefTarget = PyCell<PyCalibration>
type AsRefTarget = PyCell<PyCalibration>
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 PyCalibration
impl PyWrapper for PyCalibration
source§impl ToPyObject for PyCalibration
impl ToPyObject for PyCalibration
source§impl<'a> ToPython<PyCalibration> for &'a Calibration
impl<'a> ToPython<PyCalibration> for &'a Calibration
source§impl ToPython<PyCalibration> for Calibration
impl ToPython<PyCalibration> for Calibration
impl StructuralPartialEq for PyCalibration
Auto Trait Implementations§
impl RefUnwindSafe for PyCalibration
impl Send for PyCalibration
impl Sync for PyCalibration
impl Unpin for PyCalibration
impl UnwindSafe for PyCalibration
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