pub fn prepare_ghz(n_qubits: usize) -> QuantumResult<StateVector>Expand description
Prepare the n-qubit GHZ state (|0…0⟩ + |1…1⟩)/√2.
§Errors
QuantumError::InvalidQubitCount if n_qubits is 0 or > 30.
pub fn prepare_ghz(n_qubits: usize) -> QuantumResult<StateVector>Prepare the n-qubit GHZ state (|0…0⟩ + |1…1⟩)/√2.
QuantumError::InvalidQubitCount if n_qubits is 0 or > 30.