Skip to content
Merged
Show file tree
Hide file tree
Changes from 121 commits
Commits
Show all changes
128 commits
Select commit Hold shift + click to select a range
55b1706
init commit
multiphaseCFD Jul 14, 2025
8f843fd
Revert adding pretty assembly format to AllocOp
multiphaseCFD Jul 14, 2025
2f0d56a
add the transform for preallocate 13 more wires
multiphaseCFD Jul 14, 2025
f558116
naive implementation of bufferization
multiphaseCFD Jul 14, 2025
963ef15
a qubit can be extracted now
multiphaseCFD Jul 15, 2025
9540f69
initial implementation for qubit swap after 1-qubit gate
multiphaseCFD Jul 15, 2025
5d1369a
add registers_state to track to latest registers status
multiphaseCFD Jul 15, 2025
b349e1f
Merge branch 'master' into shuli/add_convert_to_mbqc_pass
multiphaseCFD Jul 15, 2025
3607627
fix the qubit index
multiphaseCFD Jul 15, 2025
84f3da5
unify qubit swap for 1&2 qubit gates
multiphaseCFD Jul 15, 2025
f347043
Merge branch 'master' into shuli/add_convert_to_mbqc_pass
multiphaseCFD Jul 16, 2025
e51c0e8
rewrite the gate op to ensure the qubit ssa value is updated (1-wire …
multiphaseCFD Jul 16, 2025
9c086a5
add a xfail integrate test
multiphaseCFD Jul 16, 2025
25311ec
mark a few issues in the code base
multiphaseCFD Jul 16, 2025
bba56e6
add get_op_wire_idx to walk back to get the materized value of wire i…
multiphaseCFD Jul 17, 2025
e9b8135
ensure each wire of an op can be got
multiphaseCFD Jul 17, 2025
d8b1ec9
fix bug in get_op_wire_idx brought in the last commit && add CNOT sup…
multiphaseCFD Jul 17, 2025
9aa3986
update obs wire info as well
multiphaseCFD Jul 17, 2025
2a082b6
init commit
multiphaseCFD Jul 18, 2025
3113151
add changelog and update
multiphaseCFD Jul 18, 2025
de4cac7
Merge branch 'master' into shuli/add_alloc_qb_to_quantum_dialect
multiphaseCFD Jul 18, 2025
281d1e6
Update pennylane/compiler/python_compiler/dialects/quantum.py
multiphaseCFD Jul 18, 2025
3cba48e
Update pennylane/compiler/python_compiler/dialects/quantum.py
multiphaseCFD Jul 18, 2025
a157309
Update doc/releases/changelog-dev.md
multiphaseCFD Jul 18, 2025
6a47877
Update doc/releases/changelog-dev.md
multiphaseCFD Jul 18, 2025
2db5d44
Update doc/releases/changelog-dev.md
multiphaseCFD Jul 18, 2025
0bf81b6
apply Joey's comment
multiphaseCFD Jul 18, 2025
b6af842
Merge branch 'shuli/add_alloc_qb_to_quantum_dialect' into shuli/add_c…
multiphaseCFD Jul 18, 2025
3961b18
revert pre-allocate qubit logic
multiphaseCFD Jul 18, 2025
0bca79c
Revert "revert pre-allocate qubit logic"
multiphaseCFD Jul 21, 2025
62343a6
snapshot for 1-wire gate transform without mid-measurement
multiphaseCFD Jul 23, 2025
50394ab
add init measureop insertion ops
multiphaseCFD Jul 23, 2025
80ba8b6
initial commit for the Hadamard gate lowering
multiphaseCFD Jul 23, 2025
7dfab6c
fix typo + use XOrIOp instead of RemSIOp
multiphaseCFD Jul 23, 2025
87afb0d
fix control flow in _insert_byproduct_op by adding scf.YieldOp
multiphaseCFD Jul 23, 2025
19257f5
Don't assign ifOp yield result to aux_qubits_dict[5] and use replace_…
multiphaseCFD Jul 24, 2025
86c5b8c
ensure qubit follows SSA use-def chain
multiphaseCFD Jul 24, 2025
646c956
temporal fix for the failure of swapOp creation: Insert an IdentityOp…
multiphaseCFD Jul 24, 2025
a1f1e3a
change angleConst dtype from tensor to float64
multiphaseCFD Jul 24, 2025
2bd7ab9
fix for MeasureInBasisOp creation
multiphaseCFD Jul 24, 2025
77161a6
Merge branch 'master' into shuli/add_convert_to_mbqc_pass
multiphaseCFD Jul 24, 2025
098352f
make format
multiphaseCFD Jul 25, 2025
2db10c5
refactor byprod corrections & tidy up code
multiphaseCFD Jul 25, 2025
ea3b1cd
refactor measurement part
multiphaseCFD Jul 25, 2025
12e32b7
refactor the measurement section further
multiphaseCFD Jul 25, 2025
f37dc65
add support for S gate or RZ(pi/2)
multiphaseCFD Jul 25, 2025
72fd5c4
initial commit for RZ gate (fix for _cond_insert_arbitary_basis_measu…
multiphaseCFD Jul 25, 2025
788d9f6
quick fix ensure the qubit in the qreg is not released
multiphaseCFD Jul 25, 2025
d452d54
add todos
multiphaseCFD Jul 25, 2025
23b572e
add support for RotXZX
multiphaseCFD Jul 25, 2025
71ede95
add cnot support
multiphaseCFD Jul 25, 2025
d3cf755
refactor lowering with prep_graph_state, queue_meas, queue_byprod, sw…
multiphaseCFD Jul 28, 2025
7c7d1a8
fix typo
multiphaseCFD Jul 28, 2025
bd3a682
move the target_qubit - aux qubit entanglement from _prep_graph_state
multiphaseCFD Jul 28, 2025
f392068
tidy up code
multiphaseCFD Jul 28, 2025
be4e3a1
add more docstr
multiphaseCFD Jul 29, 2025
6bd62fc
Add more info
multiphaseCFD Jul 29, 2025
46228f2
Merge branch 'master' into shuli/add_convert_to_mbqc_pass
multiphaseCFD Jul 29, 2025
2607da1
import QJIT in jax_utils
multiphaseCFD Jul 29, 2025
948df2c
fix pylint complains
multiphaseCFD Jul 29, 2025
9b35990
make format
multiphaseCFD Jul 29, 2025
fe68073
quick test
multiphaseCFD Jul 29, 2025
e9c443f
make format
multiphaseCFD Jul 29, 2025
3261618
add test for hadamard gate
multiphaseCFD Jul 29, 2025
22d2edd
add unit test for S gate
multiphaseCFD Jul 29, 2025
887bc71
add test for RZ gate
multiphaseCFD Jul 29, 2025
cd2e454
add unit test for RotXZX
multiphaseCFD Jul 29, 2025
b906e71
add unit test for CNOT
multiphaseCFD Jul 29, 2025
e5d0597
add end to end tests
multiphaseCFD Jul 29, 2025
e536846
Merge branch 'master' into shuli/add_convert_to_mbqc_pass
multiphaseCFD Jul 30, 2025
492716e
use mbqc_pipeline from catalyst.ftqc
multiphaseCFD Jul 30, 2025
fbca12e
add changelog
multiphaseCFD Jul 30, 2025
2780e32
integrate measurements_from_samples_pass to the test
multiphaseCFD Jul 30, 2025
fd2b1fb
add unit test for _generate_graph
multiphaseCFD Jul 30, 2025
63bc093
Merge branch 'master' into shuli/add_convert_to_mbqc_pass
multiphaseCFD Jul 30, 2025
d47bf50
update docstr L136
multiphaseCFD Jul 30, 2025
cd19d54
add more comments
multiphaseCFD Jul 30, 2025
b8124cd
Merge branch 'master' into shuli/add_convert_to_mbqc_pass
multiphaseCFD Jul 30, 2025
84ec8db
update unit tests
multiphaseCFD Jul 30, 2025
8ee5b7c
update docstr
multiphaseCFD Jul 30, 2025
2ae15fb
fix pylint complains
multiphaseCFD Jul 30, 2025
dfc9431
fix pylint format
multiphaseCFD Jul 30, 2025
645ccc1
quick fix
multiphaseCFD Jul 30, 2025
2b0b33a
make format
multiphaseCFD Jul 30, 2025
6bdb162
disable some pylint warnings
multiphaseCFD Jul 30, 2025
36a4a60
Merge branch 'master' into shuli/add_convert_to_mbqc_pass
multiphaseCFD Jul 30, 2025
9848e2f
update catalyst version
multiphaseCFD Jul 30, 2025
37efc45
revert changes
multiphaseCFD Jul 30, 2025
8dda665
temporal fix for the CI failure
multiphaseCFD Jul 31, 2025
7c0d87f
Merge branch 'master' into shuli/add_convert_to_mbqc_pass
multiphaseCFD Jul 31, 2025
742c53d
revert last commit
multiphaseCFD Jul 31, 2025
a0e005e
Merge branch 'master' into shuli/add_convert_to_mbqc_pass
multiphaseCFD Aug 1, 2025
8787168
Merge branch 'master' into shuli/add_convert_to_mbqc_pass
multiphaseCFD Aug 11, 2025
3f4e667
remove swap operations
multiphaseCFD Aug 11, 2025
619d86f
fix rotxzx lowering m1^m3 for qubit4
multiphaseCFD Aug 11, 2025
aecbfd2
apply some comments
multiphaseCFD Aug 11, 2025
d673e8b
update _cond_insert_arbitrary_basis_measure_op and _insert_arbitrary_…
multiphaseCFD Aug 11, 2025
aebc524
make format
multiphaseCFD Aug 11, 2025
4264c7f
to sanke style and use parity_res directly for IfOp
multiphaseCFD Aug 11, 2025
e2c12d3
remove cmp_op from _cond_insert_arbitrary_basis_measure_op
multiphaseCFD Aug 11, 2025
437ee4e
update parity check with xor operations
multiphaseCFD Aug 11, 2025
360a266
Merge branch 'master' into shuli/add_convert_to_mbqc_pass
multiphaseCFD Aug 12, 2025
ec09adf
CHECK to CHECK-NEXT
multiphaseCFD Aug 12, 2025
c224877
fix more typo ->snake_
multiphaseCFD Aug 12, 2025
f2f2a26
remove disable wrong import
multiphaseCFD Aug 12, 2025
dc042ef
replace the all use with auxiliary qubit
multiphaseCFD Aug 12, 2025
f4ef360
swap by replacing the qubit uses with the aux result qubit
multiphaseCFD Aug 12, 2025
95fe482
remove identity ops on res aux qubit
multiphaseCFD Aug 12, 2025
13d564f
Merge branch 'master' into shuli/add_convert_to_mbqc_pass
multiphaseCFD Aug 12, 2025
9bb0782
Merge branch 'master' into shuli/add_convert_to_mbqc_pass
multiphaseCFD Aug 13, 2025
d9e63f5
Merge branch 'master' into shuli/add_convert_to_mbqc_pass
multiphaseCFD Aug 13, 2025
d9ee3bb
test purpose : use quantum.dealloc_qb to dealloc qubit in qreg : Ther…
multiphaseCFD Aug 13, 2025
bc76c33
Merge branch 'master' into shuli/add_convert_to_mbqc_pass
multiphaseCFD Aug 14, 2025
40825bf
mark e2e test as xfail and apply some comments
multiphaseCFD Aug 14, 2025
5143c39
fix pylint failure
multiphaseCFD Aug 14, 2025
0a91ad8
add todos
multiphaseCFD Aug 14, 2025
bf7e3b4
Merge branch 'master' into shuli/add_convert_to_mbqc_pass
multiphaseCFD Aug 14, 2025
20c3aff
Merge branch 'master' into shuli/add_convert_to_mbqc_pass
multiphaseCFD Aug 14, 2025
f9615c4
apply Joey's comments on the source code
multiphaseCFD Aug 15, 2025
387e5d6
Merge branch 'master' into shuli/add_convert_to_mbqc_pass
multiphaseCFD Aug 15, 2025
150d449
Merge branch 'master' into shuli/add_convert_to_mbqc_pass
multiphaseCFD Aug 26, 2025
a96641f
Merge branch 'master' into shuli/add_convert_to_mbqc_pass
multiphaseCFD Sep 2, 2025
1b37f59
add while loop test
multiphaseCFD Sep 2, 2025
1dd4196
fix typo in the tests
multiphaseCFD Sep 2, 2025
3bf523f
Merge branch 'master' into shuli/add_convert_to_mbqc_pass
multiphaseCFD Sep 2, 2025
f0fb824
Merge branch 'master' into shuli/add_convert_to_mbqc_pass
multiphaseCFD Sep 2, 2025
94f62bf
apply Lillian's comments
multiphaseCFD Sep 2, 2025
c74c5cf
remore unused import
multiphaseCFD Sep 2, 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
3 changes: 3 additions & 0 deletions doc/releases/changelog-dev.md
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,9 @@
* Added a `QuantumParser` class to the `qml.compiler.python_compiler` submodule that automatically loads relevant dialects.
[(#7888)](https://github.com/PennyLaneAI/pennylane/pull/7888)

* A compilation pass written with xDSL called `qml.compiler.python_compiler.transforms.ConvertToMBQCFormalismPass` has been added for the experimental xDSL Python compiler integration. This pass converts all gates in the MBQC gate set (`Hadamard`, `S`, `RZ`, `RotXZX` and `CNOT`) to the textbook MBQC formalism.
[(#7870)](https://github.com/PennyLaneAI/pennylane/pull/7870)

* Enforce various modules to follow modular architecture via `tach`.
[(#7847)](https://github.com/PennyLaneAI/pennylane/pull/7847)

Expand Down
3 changes: 3 additions & 0 deletions pennylane/compiler/python_compiler/transforms/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
from .measurements_from_samples import MeasurementsFromSamplesPass, measurements_from_samples_pass
from .merge_rotations import MergeRotationsPass, merge_rotations_pass
from .combine_global_phases import combine_global_phases_pass, CombineGlobalPhasesPass
from .convert_to_mbqc_formalism import convert_to_mbqc_formalism_pass, ConvertToMBQCFormalismPass
from .diagonalize_measurements import (
DiagonalizeFinalMeasurementsPass,
diagonalize_final_measurements_pass,
Expand All @@ -26,6 +27,8 @@
__all__ = [
"combine_global_phases_pass",
"CombineGlobalPhasesPass",
"convert_to_mbqc_formalism_pass",
"ConvertToMBQCFormalismPass",
"diagonalize_final_measurements_pass",
"DiagonalizeFinalMeasurementsPass",
"iterative_cancel_inverses_pass",
Expand Down
Loading