pub struct CRY {
pub control: QubitId,
pub target: QubitId,
pub theta: f64,
}Expand description
Controlled Rotation-Y gate (CRY)
Fields§
§control: QubitIdControl qubit
target: QubitIdTarget qubit
theta: f64Rotation angle (in radians)
Trait Implementations§
Source§impl GateDecomposable for CRY
Implementation of GateDecomposable for CRY gate
impl GateDecomposable for CRY
Implementation of GateDecomposable for CRY gate
Source§impl GateOp for CRY
impl GateOp for CRY
Source§fn is_parameterized(&self) -> bool
fn is_parameterized(&self) -> bool
Returns true if this gate is parameterized
Source§fn matrix(&self) -> QuantRS2Result<Vec<Complex64>>
fn matrix(&self) -> QuantRS2Result<Vec<Complex64>>
Returns the matrix representation of this gate
Source§fn num_qubits(&self) -> usize
fn num_qubits(&self) -> usize
Returns the number of qubits this gate acts on
impl Copy for CRY
Auto Trait Implementations§
impl Freeze for CRY
impl RefUnwindSafe for CRY
impl Send for CRY
impl Sync for CRY
impl Unpin for CRY
impl UnwindSafe for CRY
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