Skip to main content

QuantumGates

Trait QuantumGates 

Source
pub trait QuantumGates {
    // Required methods
    fn gate_identity() -> Self;
    fn gate_x() -> Self;
    fn gate_y() -> Self;
    fn gate_z() -> Self;
    fn gate_hadamard() -> Self;
    fn gate_cnot() -> Self;
}
Expand description

Standard Quantum Gates interface.

Required Methods§

Source

fn gate_identity() -> Self

Source

fn gate_x() -> Self

Source

fn gate_y() -> Self

Source

fn gate_z() -> Self

Source

fn gate_hadamard() -> Self

Source

fn gate_cnot() -> Self

Controlled-NOT gate. Note: Implementation for single MultiVector implies 2-qubit representation support or specific tensor structure.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§