Struct qoqo::operations::EchoCrossResonanceWrapper
source · pub struct EchoCrossResonanceWrapper {
pub internal: EchoCrossResonance,
}
Expand description
Implements the controlled RotateXY operation.
The unitary matrix representation is:
.. math:: U = \frac{1}{\sqrt{2}} \begin{pmatrix} 0 & 1 & 0 & i \\ 1 & 0 & -i & 0 \\ 0 & i & 0 & 1 \\ -i & 0 & 1 & 0 \end{pmatrix}
Args:
control (int): The index of the most significant qubit in the unitary representation. Here, the qubit that controls the application of the Rotatex Operation on the target qubit.
target (int):: The index of the least significant qubit in the unitary representation. Here, the qubit RotateX Operation is applied to.
theta (CalculatorFloat): The angle $\theta$ of the rotation.
phi (CalculatorFloat): The rotation axis, in spherical coordinates :math:\phi_{sph}
gives the angle in the x-y plane.
Fields§
§internal: EchoCrossResonance
Internal storage of EchoCrossResonance object
Implementations§
Trait Implementations§
source§impl Clone for EchoCrossResonanceWrapper
impl Clone for EchoCrossResonanceWrapper
source§fn clone(&self) -> EchoCrossResonanceWrapper
fn clone(&self) -> EchoCrossResonanceWrapper
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for EchoCrossResonanceWrapper
impl Debug for EchoCrossResonanceWrapper
source§impl HasPyGilRef for EchoCrossResonanceWrapper
impl HasPyGilRef for EchoCrossResonanceWrapper
§type AsRefTarget = PyCell<EchoCrossResonanceWrapper>
type AsRefTarget = PyCell<EchoCrossResonanceWrapper>
source§impl PartialEq for EchoCrossResonanceWrapper
impl PartialEq for EchoCrossResonanceWrapper
source§fn eq(&self, other: &EchoCrossResonanceWrapper) -> bool
fn eq(&self, other: &EchoCrossResonanceWrapper) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PyClass for EchoCrossResonanceWrapper
impl PyClass for EchoCrossResonanceWrapper
source§impl PyClassImpl for EchoCrossResonanceWrapper
impl PyClassImpl for EchoCrossResonanceWrapper
source§const IS_BASETYPE: bool = false
const IS_BASETYPE: bool = false
source§const IS_SUBCLASS: bool = false
const IS_SUBCLASS: bool = false
source§const IS_MAPPING: bool = false
const IS_MAPPING: bool = false
source§const IS_SEQUENCE: bool = false
const IS_SEQUENCE: bool = false
§type ThreadChecker = SendablePyClass<EchoCrossResonanceWrapper>
type ThreadChecker = SendablePyClass<EchoCrossResonanceWrapper>
type Inventory = Pyo3MethodsInventoryForEchoCrossResonanceWrapper
§type PyClassMutability = <<PyAny as PyClassBaseType>::PyClassMutability as PyClassMutability>::MutableChild
type PyClassMutability = <<PyAny as PyClassBaseType>::PyClassMutability as PyClassMutability>::MutableChild
§type BaseNativeType = PyAny
type BaseNativeType = PyAny
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<EchoCrossResonanceWrapper> for PyClassImplCollector<EchoCrossResonanceWrapper>
impl PyClassNewTextSignature<EchoCrossResonanceWrapper> for PyClassImplCollector<EchoCrossResonanceWrapper>
fn new_text_signature(self) -> Option<&'static str>
source§impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a EchoCrossResonanceWrapper
impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a EchoCrossResonanceWrapper
source§impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a mut EchoCrossResonanceWrapper
impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a mut EchoCrossResonanceWrapper
source§impl PyTypeInfo for EchoCrossResonanceWrapper
impl PyTypeInfo for EchoCrossResonanceWrapper
source§fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
source§fn type_object(py: Python<'_>) -> &PyType
fn type_object(py: Python<'_>) -> &PyType
PyTypeInfo::type_object
will be replaced by PyTypeInfo::type_object_bound
in a future PyO3 versionsource§fn type_object_bound(py: Python<'_>) -> Bound<'_, PyType>
fn type_object_bound(py: Python<'_>) -> Bound<'_, PyType>
source§fn is_type_of(object: &PyAny) -> bool
fn is_type_of(object: &PyAny) -> bool
PyTypeInfo::is_type_of
will be replaced by PyTypeInfo::is_type_of_bound
in a future PyO3 versionobject
is an instance of this type or a subclass of this type.source§fn is_type_of_bound(object: &Bound<'_, PyAny>) -> bool
fn is_type_of_bound(object: &Bound<'_, PyAny>) -> bool
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
PyTypeInfo::is_exact_type_of
will be replaced by PyTypeInfo::is_exact_type_of_bound
in a future PyO3 versionobject
is an instance of this type.impl DerefToPyAny for EchoCrossResonanceWrapper
impl StructuralPartialEq for EchoCrossResonanceWrapper
Auto Trait Implementations§
impl Freeze for EchoCrossResonanceWrapper
impl RefUnwindSafe for EchoCrossResonanceWrapper
impl Send for EchoCrossResonanceWrapper
impl Sync for EchoCrossResonanceWrapper
impl Unpin for EchoCrossResonanceWrapper
impl UnwindSafe for EchoCrossResonanceWrapper
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
source§impl<T> FromPyObject<'_> for T
impl<T> FromPyObject<'_> for T
source§impl<'py, T> FromPyObjectBound<'_, 'py> for Twhere
T: FromPyObject<'py>,
impl<'py, T> FromPyObjectBound<'_, 'py> for Twhere
T: FromPyObject<'py>,
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§impl<T> PyErrArguments for T
impl<T> PyErrArguments for T
source§impl<T> PyTypeCheck for Twhere
T: PyTypeInfo,
impl<T> PyTypeCheck for Twhere
T: PyTypeInfo,
source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self
from the equivalent element of its
superset. Read moresource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self
is actually part of its subset T
(and can be converted to it).source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset
but without any property checks. Always succeeds.source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self
to the equivalent element of its superset.