Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

MPS Synthesis#7752

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
ACE07-Sev wants to merge20 commits intoquantumlib:main
base:main
Choose a base branch
Loading
fromACE07-Sev:mps
Open
Show file tree
Hide file tree
Changes from1 commit
Commits
Show all changes
20 commits
Select commitHold shift + click to select a range
b94f610
- Fixes #7072
ACE07-SevMay 28, 2025
5242a73
Merge branch 'main' into main
mhuckaMay 28, 2025
4ede660
- Fixed tester issues.
ACE07-SevMay 28, 2025
207504b
- Fixed formatting issues.
ACE07-SevMay 29, 2025
8f81a93
- Fixed formatting.
ACE07-SevMay 29, 2025
a9313b4
Merge branch 'main' into main
ACE07-SevJun 5, 2025
d5cee33
- Added `csx`, `c3sqrtx` and `cp` gates.
ACE07-SevJun 7, 2025
be81e17
- Fixes linting issues.
ACE07-SevJun 7, 2025
4f39e07
Merge branch 'quantumlib:main' into main
ACE07-SevJun 10, 2025
24a2d3f
- Brings back deleted gates [r, ryy, iswap] based on maintainer note.
ACE07-SevJun 10, 2025
f80eb85
- Fixed format and lint issues.
ACE07-SevJun 10, 2025
3c734c4
Merge branch 'quantumlib:main' into main
ACE07-SevJun 11, 2025
a1f1227
- Added maintainer notes.
ACE07-SevJun 11, 2025
2e0f240
Merge branch 'quantumlib:main' into main
ACE07-SevJun 13, 2025
d3c712c
Merge branch 'quantumlib:main' into main
ACE07-SevOct 27, 2025
5910761
Merge branch 'quantumlib:main' into mps
ACE07-SevNov 13, 2025
a82929f
- Initial commit for adding MPS synthesis to `cirq.contrib`.
ACE07-SevNov 13, 2025
76ccfb7
- Added proper single qubit state case.
ACE07-SevNov 15, 2025
211e1eb
- Fixed format issues.
ACE07-SevNov 16, 2025
45e4cab
Merge branch 'quantumlib:main' into mps
ACE07-SevNov 16, 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
PrevPrevious commit
NextNext commit
- Addedcsx,c3sqrtx andcp gates.
- Added testers for `cp`, `c3x`, `c4x`, `csx`, and `c3sqrtx` gates.- Fixed u0 gate.- Removed `r`, `ryy`, `cu2`, and `iswap` as they are not part of qelib 1.
  • Loading branch information
@ACE07-Sev
ACE07-Sev committedJun 7, 2025
commitd5cee33da6b0d69a171f81d0e8ddd70f63013321
45 changes: 14 additions & 31 deletionscirq-core/cirq/contrib/qasm_import/_parser.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -262,6 +262,12 @@ def __init__(self) -> None:
num_args=2,
cirq_gate=(lambda params: ops.ControlledGate(ops.rz(params[0]))),
),
'cp': QasmGateStatement(
qasm_gate='cp',
num_params=1,
num_args=2,
cirq_gate=(lambda params: ops.ControlledGate(ops.ZPowGate(exponent=params[0] / np.pi))),
),
'cswap': QasmGateStatement(
qasm_gate='cswap', num_params=0, num_args=3, cirq_gate=ops.CSWAP
),
Expand All@@ -271,16 +277,6 @@ def __init__(self) -> None:
num_args=2,
cirq_gate=(lambda params: ops.ControlledGate(QasmUGate(0, 0, params[0] / np.pi))),
),
'cu2': QasmGateStatement(
qasm_gate='cu2',
num_params=2,
num_args=2,
cirq_gate=(
lambda params: ops.ControlledGate(
QasmUGate(0.5, params[0] / np.pi, params[1] / np.pi)
)
),
),
'cu3': QasmGateStatement(
qasm_gate='cu3',
num_params=3,
Expand All@@ -299,40 +295,27 @@ def __init__(self) -> None:
num_args=2,
cirq_gate=ops.ControlledGate(ops.XPowGate(exponent=0.5)),
),
'c3sqrtx': QasmGateStatement(
qasm_gate='c3sqrtx',
num_params=0,
num_args=4,
cirq_gate=ops.ControlledGate(ops.XPowGate(exponent=0.5), num_controls=3),
),
'cx': QasmGateStatement(qasm_gate='cx', cirq_gate=CX, num_params=0, num_args=2),
'cy': QasmGateStatement(
qasm_gate='cy', cirq_gate=ops.ControlledGate(ops.Y), num_params=0, num_args=2
),
'cz': QasmGateStatement(qasm_gate='cz', cirq_gate=ops.CZ, num_params=0, num_args=2),
'h': QasmGateStatement(qasm_gate='h', num_params=0, num_args=1, cirq_gate=ops.H),
'id': QasmGateStatement(
qasm_gate='id', cirq_gate=ops.IdentityGate(1), num_params=0, num_args=1
),
'iswap': QasmGateStatement(
qasm_gate='iswap', cirq_gate=ops.ISwapPowGate(), num_params=0, num_args=2
),
'r': QasmGateStatement(
qasm_gate='r',
num_params=2,
num_args=1,
cirq_gate=(
lambda params: QasmUGate(
params[0] / np.pi, (params[1] / np.pi) - 0.5, (-params[1] / np.pi) + 0.5
)
),
qasm_gate='id', cirq_gate=ops.I, num_params=0, num_args=1
),
'rx': QasmGateStatement(
qasm_gate='rx', cirq_gate=(lambda params: ops.rx(params[0])), num_params=1, num_args=1
),
'ry': QasmGateStatement(
qasm_gate='ry', cirq_gate=(lambda params: ops.ry(params[0])), num_params=1, num_args=1
),
'ryy': QasmGateStatement(
qasm_gate='ryy',
num_params=1,
num_args=2,
cirq_gate=(lambda params: ops.YYPowGate(exponent=params[0] / np.pi)),
),
'rz': QasmGateStatement(
qasm_gate='rz', cirq_gate=(lambda params: ops.rz(params[0])), num_params=1, num_args=1
),
Expand DownExpand Up@@ -360,7 +343,7 @@ def __init__(self) -> None:
't': QasmGateStatement(qasm_gate='t', num_params=0, num_args=1, cirq_gate=ops.T),
'tdg': QasmGateStatement(qasm_gate='tdg', num_params=0, num_args=1, cirq_gate=ops.T**-1),
'u0': QasmGateStatement(
qasm_gate='u0', cirq_gate=QasmUGate(0, 0, 0), num_params=0, num_args=1
qasm_gate='u0', cirq_gate=(lambda _: ops.I), num_params=1, num_args=1
),
'u1': QasmGateStatement(
qasm_gate='u1',
Expand Down
Loading

[8]ページ先頭

©2009-2025 Movatter.jp