Skip to content

Commit

Permalink
Update crates/accelerate/src/convert_2q_block_matrix.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
jlapeyre committed Jul 8, 2024
1 parent 032bf18 commit a3ffebe
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions crates/accelerate/src/convert_2q_block_matrix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,7 @@ pub fn blocks_to_matrix(
let input_matrix = get_matrix_from_inst(py, &first_node.instruction)?;
let mut matrix: Array2<Complex64> = match bit_map
.map_bits(first_node.instruction.qubits.bind(py).iter())?
.map(|x| x as u8)
.collect::<SmallVec<[u8; 2]>>()
.collect::<Vec<_>>()
.as_slice()
{
[0] => kron(&identity, &input_matrix),
Expand Down

0 comments on commit a3ffebe

Please sign in to comment.