pub fn bell_state(&self) -> QuantumCircuitBuilder {
        let mut builder = self.new_circuit_builder();
        builder.add_operation(Hadamard(0));
        for i in 1..self.nb_qbits {
            builder.add_operation(CNot(i, [i - 1]));
        }
        builder
    }
/// Create a circuit builder initialized with operations
/// to set all the qbits in Bell state
Create a circuit builder initialized with operations
to set all the qbits in Bell state
Create a circuit builder initialized with operations to set all the qbits in Bell state
pub fn bell_state(&self) -> QuantumCircuitBuilder {
        let mut builder = self.new_circuit_builder();
        builder.add_operation(Hadamard(0));
        for i in 1..self.nb_qbits {
            builder.add_operation(CNot(i, [i - 1]));
        }
        builder
    }
pub fn bell_state ( & self ) -> QuantumCircuitBuilder { let mut builder = self . new_circuit_builder ( ) ; builder . add_operation ( Hadamard ( 0 ) ) ; for i in 1 .. self . nb_qbits { builder . add_operation ( CNot ( i , [ i - 1 ] ) ) ; } builder }
Create a circuit builder initialized with operations
to set all the qbits in Bell state
Create a circuit builder initialized with operations to set all the qbits in Bell state
&self
&self