Skip to content

Commit

Permalink
remove redundant to_vec
Browse files Browse the repository at this point in the history
  • Loading branch information
Cryoris committed Aug 12, 2024
1 parent 89b091a commit d632427
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/circuit/src/circuit_data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,10 +149,10 @@ impl CircuitData {
)?;
for (operation, params, qargs, cargs) in instruction_iter {
let qubits = (&mut res.qargs_interner)
.intern(InternerKey::Value(qargs.to_vec()))?
.intern(InternerKey::Value(qargs))?
.index;
let clbits = (&mut res.cargs_interner)
.intern(InternerKey::Value(cargs.to_vec()))?
.intern(InternerKey::Value(cargs))?
.index;
let params = (!params.is_empty()).then(|| Box::new(params));
res.data.push(PackedInstruction {
Expand Down

0 comments on commit d632427

Please sign in to comment.