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.
Trait Implementations
sourceimpl Add<&'_ QubitSized<ProcessData>> for &Process
impl Add<&'_ QubitSized<ProcessData>> for &Process
type Output = QubitSized<ProcessData>
type Output = QubitSized<ProcessData>
The resulting type after applying the +
operator.
sourceimpl Add<&'_ QubitSized<ProcessData>> for Process
impl Add<&'_ QubitSized<ProcessData>> for Process
type Output = QubitSized<ProcessData>
type Output = QubitSized<ProcessData>
The resulting type after applying the +
operator.
sourceimpl Add<QubitSized<ProcessData>> for &Process
impl Add<QubitSized<ProcessData>> for &Process
type Output = QubitSized<ProcessData>
type Output = QubitSized<ProcessData>
The resulting type after applying the +
operator.
sourceimpl Add<QubitSized<ProcessData>> for Process
impl Add<QubitSized<ProcessData>> for Process
type Output = QubitSized<ProcessData>
type Output = QubitSized<ProcessData>
The resulting type after applying the +
operator.
sourceimpl Mul<&'_ QubitSized<ProcessData>> for &Process
impl Mul<&'_ QubitSized<ProcessData>> for &Process
type Output = QubitSized<ProcessData>
type Output = QubitSized<ProcessData>
The resulting type after applying the *
operator.
sourceimpl Mul<&'_ QubitSized<ProcessData>> for Process
impl Mul<&'_ QubitSized<ProcessData>> for Process
type Output = QubitSized<ProcessData>
type Output = QubitSized<ProcessData>
The resulting type after applying the *
operator.
sourceimpl Mul<QubitSized<ProcessData>> for &Process
impl Mul<QubitSized<ProcessData>> for &Process
type Output = QubitSized<ProcessData>
type Output = QubitSized<ProcessData>
The resulting type after applying the *
operator.
sourceimpl Mul<QubitSized<ProcessData>> for Process
impl Mul<QubitSized<ProcessData>> for Process
type Output = QubitSized<ProcessData>
type Output = QubitSized<ProcessData>
The resulting type after applying the *
operator.