[−][src]Struct cqc::builder::Builder
The Builder construct builds packets for a particular application ID.
Methods
impl Builder
[src]
pub fn new(app_id: u16) -> Builder
[src]
Construct a Builder.
pub fn hello(&self) -> Request
[src]
Build a liveness check request.
pub fn get_time(&self, qubit_id: u16) -> Request
[src]
Build a qubit creation time query.
pub fn cmd_i(&self, qubit_id: u16, options: CmdOpt) -> Request
[src]
Build an identity operation command request.
pub fn cmd_new(&self, qubit_id: u16, options: CmdOpt) -> Request
[src]
Build a qubit creation command request.
pub fn cmd_measure(&self, qubit_id: u16, options: CmdOpt) -> Request
[src]
Build a measurement command request.
pub fn cmd_measure_inplace(&self, qubit_id: u16, options: CmdOpt) -> Request
[src]
Build an in-place measurement command request.
pub fn cmd_reset(&self, qubit_id: u16, options: CmdOpt) -> Request
[src]
Build a reset command request.
pub fn cmd_send(
&self,
qubit_id: u16,
options: CmdOpt,
remote_id: RemoteId
) -> Request
[src]
&self,
qubit_id: u16,
options: CmdOpt,
remote_id: RemoteId
) -> Request
Build a send command request. This command has to identify the remote node to send to.
pub fn cmd_recv(&self, qubit_id: u16, options: CmdOpt) -> Request
[src]
Build a receive command request.
pub fn cmd_epr(&self, qubit_id: u16, options: CmdOpt) -> Request
[src]
Build an EPR creation command request.
pub fn cmd_epr_recv(&self, qubit_id: u16, options: CmdOpt) -> Request
[src]
Build an EPR receive command request.
pub fn cmd_x(&self, qubit_id: u16, options: CmdOpt) -> Request
[src]
Build a Pauli X command request.
pub fn cmd_z(&self, qubit_id: u16, options: CmdOpt) -> Request
[src]
Build a Pauli Z command request.
pub fn cmd_y(&self, qubit_id: u16, options: CmdOpt) -> Request
[src]
Build a Pauli Y command request.
pub fn cmd_t(&self, qubit_id: u16, options: CmdOpt) -> Request
[src]
Build a T Gate command request.
pub fn cmd_rot_x(&self, qubit_id: u16, options: CmdOpt, steps: u8) -> Request
[src]
Build an X rotation command request. Rotation is specified in steps of pi/256 increments.
pub fn cmd_rot_y(&self, qubit_id: u16, options: CmdOpt, steps: u8) -> Request
[src]
Build a Y rotation command request. Rotation is specified in steps of pi/256 increments.
pub fn cmd_rot_z(&self, qubit_id: u16, options: CmdOpt, steps: u8) -> Request
[src]
Build a Z rotation command request. Rotation is specified in steps of pi/256 increments.
pub fn cmd_h(&self, qubit_id: u16, options: CmdOpt) -> Request
[src]
Build a Hadamard Gate command request.
pub fn cmd_k(&self, qubit_id: u16, options: CmdOpt) -> Request
[src]
Build a K Gate command request.
pub fn cmd_cnot(
&self,
qubit_id: u16,
options: CmdOpt,
target_qubit_id: u16
) -> Request
[src]
&self,
qubit_id: u16,
options: CmdOpt,
target_qubit_id: u16
) -> Request
Build a CNOT command request. Requires a target qubit.
pub fn cmd_cphase(
&self,
qubit_id: u16,
options: CmdOpt,
target_qubit_id: u16
) -> Request
[src]
&self,
qubit_id: u16,
options: CmdOpt,
target_qubit_id: u16
) -> Request
Build a CPHASE command request. Requires a target qubit.
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,