pub fn call_circuit(circuit: &Circuit) -> Result<Vec<AqtInstruction>, RoqoqoBackendError> {
    let mut circuit_vec: Vec<AqtInstruction> = Vec::new();
    for op in circuit.iter() {
        if let Some(instruction) = call_operation(op)? {
            circuit_vec.push(instruction);
        }
    }
    Ok(circuit_vec)
}
/// Converts all operations in a [roqoqo::Circuit] into instructions for AQT Hardware or AQT Simulators
///
/// # Arguments
///
/// `circuit` - The [roqoqo::Circuit] that is converted
///
/// # Returns
///
/// `Vec<AqtInstruction>` - List of converted instructions
/// `RoqoqoBackendError::OperationNotInBackend` - Error when [roqoqo::operations::Operation] can not be converted
Converts all operations in a [roqoqo::Circuit] into instructions for AQT Hardware or AQT Simulators
Converts all operations in a [ roqoqo :: Circuit ] into instructions for AQT Hardware or AQT Simulators
pub fn call_circuit(circuit: &Circuit) -> Result<Vec<AqtInstruction>, RoqoqoBackendError> {
    let mut circuit_vec: Vec<AqtInstruction> = Vec::new();
    for op in circuit.iter() {
        if let Some(instruction) = call_operation(op)? {
            circuit_vec.push(instruction);
        }
    }
    Ok(circuit_vec)
}
pub fn call_circuit ( circuit : & Circuit ) -> Result < Vec < AqtInstruction > , RoqoqoBackendError > { let mut circuit_vec : Vec < AqtInstruction > = Vec :: new ( ) ; for op in circuit . iter ( ) { if let Some ( instruction ) = call_operation ( op ) ? { circuit_vec . push ( instruction ) ; } } Ok ( circuit_vec ) }
Converts all operations in a [roqoqo::Circuit] into instructions for AQT Hardware or AQT Simulators
Converts all operations in a [ roqoqo :: Circuit ] into instructions for AQT Hardware or AQT Simulators
circuit
&Circuit
`Vec` - List of converted instructions
`RoqoqoBackendError::OperationNotInBackend` - Error when [roqoqo::operations::Operation] can not be converted
` Vec ` - List of converted instructions ` RoqoqoBackendError :: OperationNotInBackend ` - Error when [ roqoqo :: operations :: Operation ] can not be converted
circuit
&Circuit