Skip to content

Commit

Permalink
Merged successfully
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-campora committed Feb 3, 2025
1 parent 0c18833 commit a5f7f23
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 1 deletion.
3 changes: 3 additions & 0 deletions python/quantum-pecos/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ documentation = "https://quantum-pecos.readthedocs.io"
repository = "https://github.com/PECOS-packages/PECOS"

[project.optional-dependencies]
qir = [
"llvmlite==0.41.0"
]
projectq = [ # State-vector sims using ProjectQ
"pybind11>=2.2.3",
"projectq>=0.5",
Expand Down
5 changes: 5 additions & 0 deletions python/quantum-pecos/src/pecos/slr/gen_codes/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,8 @@
# Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
# specific language governing permissions and limitations under the License.

from pecos.slr.gen_codes.gen_qasm import QASMGenerator
from pecos.slr.gen_codes.gen_qir import QIRGenerator
from pecos.slr.gen_codes.generator import Generator
from pecos.slr.gen_codes.language import Language
2 changes: 1 addition & 1 deletion python/quantum-pecos/src/pecos/slr/gen_codes/gen_qir.py
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,7 @@ def _handle_quantum_gate(self, gate: qgate_base.QGate) -> None:
case Measure():
creg_or_bit = gate.cout[0]
if isinstance(creg_or_bit, CReg):
ll_creg = self._creg_dict[creg.sym][0]
ll_creg = self._creg_dict[creg_or_bit.sym][0]
for i, q in enumerate(gate.qargs[0]):
self._measure_count += 1
qubit_ptr = self._qarg_to_qubit_ptr(q)
Expand Down
23 changes: 23 additions & 0 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a5f7f23

Please sign in to comment.