Skip to content

Commit

Permalink
Update test
Browse files Browse the repository at this point in the history
  • Loading branch information
itsubaki committed Jan 13, 2025
1 parent 45e0a56 commit d8458c2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions quantum/gate/gate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,11 @@ func TestAddControlled(t *testing.T) {
want: gate.ControlledNot(2, []int{0}, 1),
bit: 0,
},
{
in: gate.TensorProduct(gate.X(), 2, []int{0}),
want: gate.ControlledNot(2, []int{1}, 0),
bit: 1,
},
{
in: gate.ControlledNot(3, []int{0}, 2),
want: gate.ControlledNot(3, []int{0, 1}, 2),
Expand Down

0 comments on commit d8458c2

Please sign in to comment.