Struct tket_json_rs::circuit_json::Operation
source · pub struct Operation<P = String> {
pub op_type: OpType,
pub n_qb: Option<u32>,
pub params: Option<Vec<P>>,
pub op_box: Option<OpBox>,
pub signature: Option<Vec<String>>,
pub conditional: Option<Conditional>,
}
Expand description
Serializable operation descriptor.
Fields§
§op_type: OpType
The type of operation.
n_qb: Option<u32>
Number of input and output qubits.
params: Option<Vec<P>>
Expressions for the parameters of the operation.
op_box: Option<OpBox>
Internal box for the operation.
signature: Option<Vec<String>>
The pre-computed signature.
conditional: Option<Conditional>
A QASM-style classical condition for the operation.
Implementations§
Trait Implementations§
source§impl<'de, P> Deserialize<'de> for Operation<P>where
P: Deserialize<'de>,
impl<'de, P> Deserialize<'de> for Operation<P>where
P: Deserialize<'de>,
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<P: PartialEq> PartialEq for Operation<P>
impl<P: PartialEq> PartialEq for Operation<P>
impl<P> StructuralPartialEq for Operation<P>
Auto Trait Implementations§
impl<P> Freeze for Operation<P>
impl<P> RefUnwindSafe for Operation<P>where
P: RefUnwindSafe,
impl<P> Send for Operation<P>where
P: Send,
impl<P> Sync for Operation<P>where
P: Sync,
impl<P> Unpin for Operation<P>where
P: Unpin,
impl<P> UnwindSafe for Operation<P>where
P: UnwindSafe,
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