Skip to content

Commit

Permalink
Update crates/circuit/src/converters.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Raynel Sanchez <87539502+raynelfss@users.noreply.github.com>
  • Loading branch information
mtreinish and raynelfss authored Sep 11, 2024
1 parent 39ad485 commit d795d53
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions crates/circuit/src/converters.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,13 @@ pub fn dag_to_circuit(
op,
qubits: instr.qubits,
clbits: instr.clbits,
params: instr.params.clone(),
params: instr.params.iter().map(|param| param.clone_ref(py)).collect(),
params: Some(Box::new(
instr
.params_view()
.iter()
.map(|param| param.clone_ref(py))
.collect(),
)),
#[cfg(feature = "cache_pygates")]
py_op: OnceCell::new(),
})
Expand Down

0 comments on commit d795d53

Please sign in to comment.