pub type Process = QubitSized<ProcessData>;
Expand description
A linear function from quantum states to quantum states.
Remarks
A process that is completely positive and trace preserving is a channel.
Implementations
sourceimpl Process
impl Process
sourceimpl Process
impl Process
sourcepub fn new_pauli_channel<T: IntoPauliMixture>(data: T) -> Self
pub fn new_pauli_channel<T: IntoPauliMixture>(data: T) -> Self
Returns a new Pauli channel, given a mixture of Pauli operators.
sourcepub fn as_json(&self) -> String
pub fn as_json(&self) -> String
Returns a serialization of this quantum process as a JSON object.
sourcepub fn extend_one_to_n(&self, idx_qubit: usize, n_qubits: usize) -> Process
pub fn extend_one_to_n(&self, idx_qubit: usize, n_qubits: usize) -> Process
Returns a copy of this process that applies to registers of a given size.