Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
19344b2
- Trying an idea by using rounding on M2 (this will be okay given M2 …
ACE07-Sev May 19, 2025
20fb1bf
- Trying an idea for fixing floating point error with uniformly contr…
ACE07-Sev May 19, 2025
5d26bb4
- Trying an idea by rounding v u r only.
ACE07-Sev May 19, 2025
9b0428b
- Trying rounding the gates during application in Multiplexor (roundi…
ACE07-Sev May 19, 2025
56add99
- Trying an idea to see if the two qubit inconsistency between differ…
ACE07-Sev May 23, 2025
6fdbbc0
- Printing full output for two qubit case
ACE07-Sev May 23, 2025
cf1c937
- Testing to see if the phase difference seen in previous push is due…
ACE07-Sev May 23, 2025
796c9b2
- Trying an idea for fixing the two-qubit issue (Turns out it's not d…
ACE07-Sev May 25, 2025
b4a3fc8
- Checking if the windows non-rounded fail is due to wrong diagonaliz…
ACE07-Sev May 25, 2025
16fe3a3
- Trying a quick sanity check (P is real-symmetric, so conj shouldn't…
ACE07-Sev May 25, 2025
aa8d8dd
- Added print lines to see what is causing the uniformly controlled i…
ACE07-Sev May 26, 2025
2b2e611
- Checking the single qubit gates produced to see if they are the cau…
ACE07-Sev May 26, 2025
3492fdc
Fixed the mypy issue
ACE07-Sev May 26, 2025
cfa1199
- Checking to see if the issue is from `extract_uvr_matrices` (the si…
ACE07-Sev May 26, 2025
300eb7c
- Trying cmath for uniformly controlled issue.
ACE07-Sev May 26, 2025
5efb196
- Trying rounding again, with 16 decimals
ACE07-Sev May 26, 2025
ae0d633
- Added full framework to the uniformly controlled testers.
ACE07-Sev May 26, 2025
3db28fa
- Updated workflow ymls
ACE07-Sev May 26, 2025
10ddce1
- Bumped versions where possible to minimize warnings.
ACE07-Sev May 27, 2025
77767ca
- Added additional testers for known cases of M2 diagnolization issues.
ACE07-Sev Jun 1, 2025
d09b3f4
- Added more unit tests.
ACE07-Sev Jul 7, 2025
9809d42
- Minimized test cases for UC to make debugging easier.
ACE07-Sev Jul 7, 2025
952a342
- Updated workflow to run all workflows.
ACE07-Sev Jul 7, 2025
5e9277e
- Checking diagonal.
ACE07-Sev Jul 8, 2025
11748eb
- Checking why diagonal is different on different os.
ACE07-Sev Jul 8, 2025
25a3082
- Additional prints to pinpoint divergence.
ACE07-Sev Jul 8, 2025
a91feed
- Fixed testing for better assertion of the property based on D U' = …
ACE07-Sev Jul 12, 2025
a784b6e
- Fixes style for E252.
ACE07-Sev Jul 12, 2025
5c93153
- Added type hints to `repetition_verify` in `quick.circuit.circuit_u…
ACE07-Sev Jul 14, 2025
7ee77a8
- Added `calculate_entanglement_entropy()` and `calculate_entanglemen…
ACE07-Sev Jul 20, 2025
c7d5852
- Added repeat and tensor to `quick.circuit` module via `__mul__` and…
ACE07-Sev Jul 21, 2025
a04315f
- Updated to improve coverage.
ACE07-Sev Jul 21, 2025
f36dee1
- Slight fix to `is_statevector` to handle 2 dimensional arrays where…
ACE07-Sev Jul 22, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ on:
jobs:
build:
name: Build distribution 📦
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
permissions:
attestations: write
id-token: write
Expand All @@ -32,7 +35,10 @@ jobs:
name: Publish Python 🐍 distribution 📦 to PyPI
needs: build
if: ${{ github.event.action == 'published' }}
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
environment:
name: pypi
url: https://pypi.org/project/quick-core/${{ github.ref_name }}
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ["3.10", "3.11", "3.12"]

steps:
Expand Down
18 changes: 9 additions & 9 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,17 @@ version = "0.0.0"
dependencies = [
"cirq-core == 1.4.1",
"genQC == 0.1.0",
"numpy >= 1.23,< 3.0",
"numpy >= 1.23",
"pennylane == 0.39.0",
"pytket == 1.37.0",
"pytket-qiskit == 0.62.0",
"pytket-cirq == 0.39.0",
"qiskit == 1.3.1",
"qiskit_aer == 0.16.0",
"qiskit_ibm_runtime == 0.34.0",
"qiskit-transpiler-service == 0.4.14",
"pytket == 2.4.1",
"pytket-qiskit == 0.68.0",
"pytket-cirq == 0.40.0",
"qiskit == 2.0.1",
"qiskit_aer == 0.17.0",
"qiskit_ibm_runtime == 0.39.0",
"qiskit-ibm-transpiler == 0.11.0",
"quimb == 1.10.0",
"tket2 == 0.6.0"
"tket2 == 0.10.0"
]
requires-python = ">=3.10, <3.13"
authors = [
Expand Down
10 changes: 5 additions & 5 deletions quick/backend/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class Backend(ABC):
"""
def __init__(
self,
device: str="CPU"
device: str = "CPU"
) -> None:
""" Initialize a `quick.backend.Backend` instance.
"""
Expand Down Expand Up @@ -176,7 +176,7 @@ def get_operator(
def get_counts(
self,
circuit: Circuit,
num_shots: int=1024
num_shots: int = 1024
) -> dict[str, int]:
""" Get the counts of the backend.

Expand Down Expand Up @@ -331,7 +331,7 @@ def __init__(
self,
single_qubit_error: float,
two_qubit_error: float,
device: str="CPU"
device: str = "CPU"
) -> None:
""" Initialize a `quick.backend.NoisyBackend` instance.
"""
Expand Down Expand Up @@ -380,7 +380,7 @@ class FakeBackend(Backend, ABC):
"""
def __init__(
self,
device: str="CPU"
device: str = "CPU"
) -> None:
""" Initialize a `quick.backend.FakeBackend` instance.
"""
Expand Down Expand Up @@ -451,7 +451,7 @@ def get_operator(
def get_counts(
self,
circuit: Circuit,
num_shots: int=1024
num_shots: int = 1024
) -> dict[str, int]:
""" Get the counts of the backend.

Expand Down
8 changes: 4 additions & 4 deletions quick/backend/qiskit_backends/aer_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,9 @@ class AerBackend(NoisyBackend):
"""
def __init__(
self,
single_qubit_error: float=0.0,
two_qubit_error: float=0.0,
device: str="CPU"
single_qubit_error: float = 0.0,
two_qubit_error: float = 0.0,
device: str = "CPU"
) -> None:

super().__init__(
Expand Down Expand Up @@ -189,7 +189,7 @@ def get_operator(
def get_counts(
self,
circuit: Circuit,
num_shots: int=1024
num_shots: int = 1024
) -> dict[str, int]:

if len(circuit.measured_qubits) == 0:
Expand Down
4 changes: 2 additions & 2 deletions quick/backend/qiskit_backends/fake_ibm_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def __init__(
self,
hardware_name: str,
qiskit_runtime: QiskitRuntimeService,
device: str="CPU"
device: str = "CPU"
) -> None:

super().__init__(device=device)
Expand Down Expand Up @@ -161,7 +161,7 @@ def get_operator(
def get_counts(
self,
circuit: Circuit,
num_shots: int=1024
num_shots: int = 1024
) -> dict[str, int]:

result = self._counts_backend.run([circuit.circuit], shots=num_shots).result()
Expand Down
Loading
Loading