Skip to content

Commit

Permalink
Fix error linked to Qiskit minimum version required
Browse files Browse the repository at this point in the history
  • Loading branch information
Takishima committed Jun 16, 2021
1 parent 621573b commit e6052b4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions projectq/libs/qasm/_parse_qasm_qiskit.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ def apply_op(eng, gate, qubits, bits, bits_map):
# TODO: This will silently discard opaque gates...
return

gate_args = {gate._definition.qregs[0].name: qubits}
gate_args = {gate.definition.qregs[0].name: qubits}

for gate_sub, quregs_sub, bits_sub in gate._definition.data:
for gate_sub, quregs_sub, bits_sub in gate.definition.data:
# OpenQASM 2.0 limitation...
assert gate.name != 'measure' and not bits_sub
apply_op(
Expand Down
4 changes: 2 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ install_requires =
braket = boto3

# OpenQASM support
qiskit = qiskit-terra >= 0.11
qasm = qiskit-terra >= 0.11
qiskit = qiskit-terra >= 0.15
qasm = qiskit-terra >= 0.15
pyparsing = pyparsing

# ==============================================================================
Expand Down

0 comments on commit e6052b4

Please sign in to comment.