File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -226,7 +226,7 @@ def bell():
226226
227227 with pytest .raises (RuntimeError ) as error :
228228 bell .compile ()
229- assert 'controlled operation requested without any control argument(s) ' in repr (
229+ assert 'missing value ' in repr (
230230 error )
231231
232232
@@ -265,7 +265,7 @@ def kernel3():
265265
266266 with pytest .raises (RuntimeError ) as error :
267267 cudaq .sample (kernel3 )
268- assert 'invalid number of arguments (1) passed to custom_cz (requires 2 arguments) ' in repr (
268+ assert 'missing value ' in repr (
269269 error )
270270
271271
Original file line number Diff line number Diff line change @@ -138,11 +138,11 @@ def hw_kernel():
138138 cudaq .set_target ('ionq' , emulate = True )
139139 # fmt: on
140140 expected_str = R"""
141- ╭───╮ ╭───╮╭─────╮╭───╮ ╭───╮
142- q0 : ┤ h ├──●─────────────────────●──────────────┤ x ├┤ tdg ├┤ x ├ ┤ t ├
143- ╰───╯ │ │ ╰─┬─╯╰ ─────╯╰─┬─╯ ├───┤
144- q1 : ───────┼ ───────────●───────── ┼─────────── ●────● ───────────●── ┤ t ├
145- ╭───╮╭─┴─╮╭─────╮╭─┴─╮╭───╮╭─┴─╮╭─────╮╭─┴─╮╭ ───╮ ╭ ───╮ ╰───╯
141+ ╭───╮ ╭───╮
142+ q0 : ┤ h ├────────────── ●─────────────────────●────● ───────────●── ┤ t ├
143+ ╰───╯ │ │ ╭─┴─╮╭ ─────╮╭─┴─╮ ├───┤
144+ q1 : ───────● ───────────┼─────────●───────────┼──┤ x ├┤ tdg ├┤ x ├ ┤ t ├
145+ ╭───╮╭─┴─╮╭─────╮╭─┴─╮╭───╮╭─┴─╮╭─────╮╭─┴─╮├ ───┤╰┬ ───┬╯╰───╯ ╰───╯
146146q2 : ┤ h ├┤ x ├┤ tdg ├┤ x ├┤ t ├┤ x ├┤ tdg ├┤ x ├┤ t ├─┤ h ├───────────
147147 ╰───╯╰───╯╰─────╯╰───╯╰───╯╰───╯╰─────╯╰───╯╰───╯ ╰───╯
148148"""
You can’t perform that action at this time.
0 commit comments