You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When including the stdgates.inc file in a Quasar circuit, the program crashes with a MethodError. This issue seems to arise from a type conversion problem related to the BraketSimulator instructions.
To reproduce
Create a new Julia script or open a Julia REPL.
Use the following code snippet to define a circuit:
using BraketSimulator
BraketSimulator.Circuit("""OPENQASM 3.0;include "stdgates.inc";""")
Run the code.
Expected behavior
I expected the circuit to be created successfully without any errors when including the stdgates.inc file.
Screenshots or logs
System information
Julia version: stable
BraketSimulator version: main branch
Additional context
This issue may be related to the handling of control qubits in the BraketSimulator when using the stdgates.inc file. It seems that there is a mismatch in the expected types for the instructions being processed. Further investigation into the handle_gate_modifiers function in the Quasar package may be necessary to identify the root cause of the type conversion error.
The text was updated successfully, but these errors were encountered:
Describe the bug
When including the
stdgates.inc
file in a Quasar circuit, the program crashes with aMethodError
. This issue seems to arise from a type conversion problem related to theBraketSimulator
instructions.To reproduce
Expected behavior
I expected the circuit to be created successfully without any errors when including the
stdgates.inc
file.Screenshots or logs
System information
Additional context
This issue may be related to the handling of control qubits in the
BraketSimulator
when using thestdgates.inc
file. It seems that there is a mismatch in the expected types for the instructions being processed. Further investigation into thehandle_gate_modifiers
function in the Quasar package may be necessary to identify the root cause of the type conversion error.The text was updated successfully, but these errors were encountered: