pub struct Process { /* private fields */ }Implementations
sourceimpl Process
impl Process
pub fn new(pid: usize) -> Self
pub fn new_ptr() -> Rc<RefCell<Self>>
pub fn set_features(&mut self, features: Features)
pub fn allocate_qubit(&mut self, dirty: bool) -> Result<Qubit>
pub fn free_qubit(&mut self, qubit: &mut Qubit, dirty: bool) -> Result<()>
pub fn apply_gate(&mut self, gate: QuantumGate, target: &Qubit) -> Result<()>
pub fn apply_plugin(
&mut self,
name: &str,
target: &[&Qubit],
args: &str
) -> Result<()>
pub fn measure(&mut self, qubits: &mut [&mut Qubit]) -> Result<Future>
pub fn measure_ref(
&mut self,
qubits: &mut [Rc<RefCell<Qubit>>]
) -> Result<Future>
pub fn ctrl_push(&mut self, qubits: &[&Qubit]) -> Result<()>
pub fn ctrl_push_ref(&mut self, qubits: &[Rc<RefCell<Qubit>>]) -> Result<()>
pub fn ctrl_pop(&mut self) -> Result<()>
pub fn adj_begin(&mut self) -> Result<()>
pub fn adj_end(&mut self) -> Result<()>
pub fn get_label(&mut self) -> Result<Label>
pub fn open_block(&mut self, label: &Label) -> Result<()>
pub fn jump(&mut self, label: &Label) -> Result<()>
pub fn branch(
&mut self,
test: &Future,
then: &Label,
otherwise: &Label
) -> Result<()>
pub fn dump(&mut self, qubits: &[&Qubit]) -> Result<Dump>
pub fn dump_ref(&mut self, qubits: &[Rc<RefCell<Qubit>>]) -> Result<Dump>
pub fn add_int_op(
&mut self,
op: ClassicalOp,
lhs: &Future,
rhs: &Future
) -> Result<Future>
pub fn int_set(&mut self, dst: &Future, src: &Future) -> Result<()>
pub fn int_new(&mut self, value: i64) -> Result<Future>
pub fn prepare_for_execution(&mut self) -> Result<()>
pub fn exec_time(&self) -> Option<f64>
pub fn set_timeout(&mut self, timeout: u64)
pub fn metrics(&self) -> &Metrics
pub fn blocks(&self) -> Vec<&CodeBlock>
pub fn serialize_metrics(&mut self, data_type: DataType) -> &SerializedData
pub fn serialize_quantum_code(&mut self, data_type: DataType) -> &SerializedData
pub fn get_serialized_metrics(&self) -> Option<&SerializedData>
pub fn get_serialized_quantum_code(&self) -> Option<&SerializedData>
pub fn set_result(&mut self, result: ResultData) -> Result<()>
pub fn set_serialized_result(&mut self, result: &SerializedData) -> Result<()>
pub fn pid(&self) -> usize
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Process
impl !Send for Process
impl !Sync for Process
impl Unpin for Process
impl !UnwindSafe for Process
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more