Skip to content

Commit

Permalink
Fix: Use Vec instead of IndexMap for Io maps.
Browse files Browse the repository at this point in the history
- Adapt to rebase
  • Loading branch information
raynelfss committed Aug 23, 2024
1 parent 341d824 commit c6eb882
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/circuit/src/dag_circuit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6227,8 +6227,8 @@ impl DAGCircuit {
unit: "dt".to_string(),
qubit_locations: PyDict::new_bound(py).unbind(),
clbit_locations: PyDict::new_bound(py).unbind(),
qubit_io_map: IndexMap::with_capacity_and_hasher(num_qubits, RandomState::new()),
clbit_io_map: IndexMap::with_capacity_and_hasher(num_clbits, RandomState::new()),
qubit_io_map: Vec::with_capacity(num_qubits),
clbit_io_map: Vec::with_capacity(num_clbits),
var_input_map: _VarIndexMap::new(py),
var_output_map: _VarIndexMap::new(py),
op_names: IndexMap::default(),
Expand Down

0 comments on commit c6eb882

Please sign in to comment.