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§
fn gate_identity() -> Self
fn gate_x() -> Self
fn gate_y() -> Self
fn gate_z() -> Self
fn gate_hadamard() -> Self
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.