Skip to content

Commit

Permalink
Update experiment code
Browse files Browse the repository at this point in the history
  • Loading branch information
fxfxfxfxfxfxfxfx committed Jul 5, 2024
1 parent 7c54f92 commit 68cd034
Show file tree
Hide file tree
Showing 16 changed files with 1,091 additions and 114 deletions.
170 changes: 170 additions & 0 deletions examples/0example.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,170 @@
INFO:2024-05-07 10:52:18:Find sub-circuit: ┌────────────────────────────┐ _method_
q_0: ┤ U3(2.7315,0.076635,2.1947) ├───────────────░─────
└───────────┬───┬────────────┘┌────┐┌───┐ ░
q_1: ────────────┤ H ├─────────────┤ Sx ├┤ H ├────░─────
├───┤ └─┬──┘└───┘ ░
q_2: ────────────┤ H ├───────────────┼────────────░─────
└───┘ │ ░
q_3: ────────────────────────────────■────────────░─────
░ , qubits: {2, 3}
INFO:2024-05-07 10:52:18:Find sub-circuit: »
q_0: ───────────────────────────────────────────────────────────────────»
┌───┐ ┌──────┐┌───┐»
q_1: ─────────────■────────────────────────┤ H ├───────────┤0 ├┤ S ├»
│ └───┘ │ Ecr │└───┘»
q_2: ─────────────┼────────────────────────────────────────┤1 ├─────»
┌────────────┴─────────────┐┌────────────────────────┐└──────┘ »
q_3: ┤ U3(4.2328,5.1784,5.7884) ├┤ U3(1.387,1.69,0.35378) ├─────────────»
└──────────────────────────┘└────────────────────────┘ »
« _method_
«q_0: ────░─────
« ░
«q_1: ────░─────
« ░
«q_2: ────░─────
« ░
«q_3: ────░─────
« ░ , qubits: {3, 4}
INFO:2024-05-07 10:52:18:Find sub-circuit: ┌──────────────┐»
q_0: ──────────────────────────────────────────────────┤1 ├»
│ │»
q_1: ──────────────────────────────────────────────────┤ Rzx(4.1749) ├»
┌──────────────┐┌──────────────────┐│ │»
q_2: ──────────────┤1 ├┤ R(2.4985,4.4613) ├┤0 ├»
┌────────────┐│ Rxx(3.4745) │└──────────────────┘└──────────────┘»
q_3: ┤ U1(4.0221) ├┤0 ├────────────────────────────────────»
└────────────┘└──────────────┘ »
« _method_
«q_0: ────░─────
« ░
«q_1: ────░─────
« ░
«q_2: ────░─────
« ░
«q_3: ────░─────
« ░ , qubits: {2, 5}
INFO:2024-05-07 10:52:18:Find sub-circuit: ┌───┐ ┌────┐ ┌───┐ »
q_0: ─────────────■───────────────────────┤ H ├─────────┤ Sx ├──────┤ H ├──────»
│ └───┘ └─┬──┘┌─────┴───┴─────┐»
q_1: ─────────────┼───────────────────────────────────────■───┤ U2(0.3258,-π) ├»
│ ┌─────────────────────┐ └───────────────┘»
q_2: ─────────────┼──────────────┤ U3(2.9567,-π/2,π/2) ├───────────────────────»
┌────────────┴─────────────┐└─────────────────────┘ »
q_3: ┤ U3(5.7091,1.6928,1.1144) ├──────────────────────────────────────────────»
└──────────────────────────┘ »
« _method_
«q_0: ─X─────░─────
« │ ░
«q_1: ─┼─────░─────
« │ ░
«q_2: ─X─────░─────
« ░
«q_3: ───────░─────
« ░ , qubits: {2, 3}
INFO:2024-05-07 10:52:18:Find sub-circuit: _method_
q_0: ─────────────────────────────────────────░─────
q_1: ─────────────────────────────────────────░─────
┌────────────────────────────────┐ ░
q_2: ┤ U(2.2559,3.9281,1.3662,5.2592) ├─■─────░─────
└───────────────┬────────────────┘ │ ░
q_3: ────────────────■──────────────────■─────░─────
░ , qubits: {3, 4}
INFO:2024-05-07 10:52:18:Find sub-circuit: _method_
q_0: ────────────░─────
q_1: ────────────░─────
┌──────┐ ░
q_2: ┤1 ├────░─────
│ Ecr │ ░
q_3: ┤0 ├────░─────
└──────┘ ░ , qubits: {2, 3}
INFO:2024-05-07 10:52:18:Find sub-circuit: ┌──────────────┐┌────────────────┐ »
q_0: ┤1 ├┤ U2(0,-0.60207) ├──────────────────────────────■──»
│ │└────────────────┘ │ »
q_1: ┤ ├────────────────────────────────────────────────┼──»
│ Rzx(1.6146) │ ┌────────────┐ ┌─┴─┐»
q_2: ┤ ├────────X────────────────┤ U1(2.1686) ├───────┤ X ├»
│ │ │ ┌──────┴────────────┴──────┐└───┘»
q_3: ┤0 ├────────X─────────┤ U3(6.1039,3.7784,3.4017) ├─────»
└──────────────┘ └──────────────────────────┘ »
« ┌─────────────┐ ┌───────────┐ _method_
«q_0: ┤ Ry(-1.9427) ├──■───┤ U2(-π,-π) ├─────░─────
« └─────────────┘ │ └───────────┘ ░
«q_1: ─────────────────┼─────────────────────░─────
« ┌─────────────┐┌─┴─┐┌─────────────┐ ░
«q_2: ┤ Ry(-1.9427) ├┤ X ├┤ U1(-2.1686) ├────░─────
« └─────────────┘└───┘└─────────────┘ ░
«q_3: ───────────────────────────────────────░─────
« ░ , qubits: {2, 4}
INFO:2024-05-07 10:52:18:Find sub-circuit: »
q_0: ────────────────────────────────────────────────────────────────────»
┌────┐ ┌───┐ »
q_1: ───────────────────────────┤ Sx ├───────┤ H ├───────────────■───────»
└─┬──┘ └───┘ ┌──────┴──────┐»
q_2: ─────────────────────────────┼───────────────────────┤ Rz(0.71304) ├»
┌─────────────────────────┐ │ ┌──────────────────┐└─────────────┘»
q_3: ┤ U3(0.25108,-2.1899,π/2) ├──■───┤ R(2.4741,2.6672) ├───────────────»
└─────────────────────────┘ └──────────────────┘ »
« _method_
«q_0: ──────────────────░─────
« ┌───┐ ░
«q_1: ────┤ T ├─────────░─────
« └───┘ ░
«q_2: ──────■───────────░─────
« ┌─────┴──────┐ ░
«q_3: ┤ Rx(0.3521) ├────░─────
« └────────────┘ ░ , qubits: {3, 5}
INFO:2024-05-07 10:52:18:Number of sub-circuits: 8
DEBUG:2024-05-07 10:52:18:aaaaa
DEBUG:2024-05-07 10:52:18:Rank 0 start executing the 0-th subcirc
DEBUG:2024-05-07 10:52:18:The qubit acted on by the previous subcircuit
DEBUG:2024-05-07 10:52:18:[0, 1, 2, 3]
DEBUG:2024-05-07 10:52:18:The qubit that the current subcircuit acts on
DEBUG:2024-05-07 10:52:18:[0, 1, 2, 3]
DEBUG:2024-05-07 10:52:18:Process 0 sends its own status [0,16] to process 0
DEBUG:2024-05-07 10:52:18:Process 0 receives its own status [0,16] from process 0
DEBUG:2024-05-07 10:52:18:All data of process 0 is ready
DEBUG:2024-05-07 10:52:18:Rank 0 start executing the 1-th subcirc
DEBUG:2024-05-07 10:52:18:The qubit acted on by the previous subcircuit
DEBUG:2024-05-07 10:52:18:[0, 1, 2, 3]
DEBUG:2024-05-07 10:52:18:The qubit that the current subcircuit acts on
DEBUG:2024-05-07 10:52:18:[0, 1, 3, 4]
DEBUG:2024-05-07 10:52:18:Process 0 sends its own status [0,4] to process 0
DEBUG:2024-05-07 10:52:18:Process 0 receives its own status [0,4] from process 0
DEBUG:2024-05-07 10:52:18:Process 0 sends its own status [4,8] to process 1
DEBUG:2024-05-07 10:52:18:The size of a single packet is 64 bytes
DEBUG:2024-05-07 10:52:18:Process 0 sends its own status [8,12] to process 0
DEBUG:2024-05-07 10:52:18:Process 0 receives its own status [8,12] from process 1
DEBUG:2024-05-07 10:52:18:Process 0 sends its own status [12,16] to process 1
DEBUG:2024-05-07 10:52:18:The size of a single packet is 64 bytes
DEBUG:2024-05-07 10:52:18:All data of process 0 is ready
DEBUG:2024-05-07 10:52:18:Rank 0 start executing the 2-th subcirc
DEBUG:2024-05-07 10:52:18:The qubit acted on by the previous subcircuit
DEBUG:2024-05-07 10:52:18:[0, 1, 3, 4]
DEBUG:2024-05-07 10:52:18:The qubit that the current subcircuit acts on
DEBUG:2024-05-07 10:52:18:[0, 1, 2, 5]
DEBUG:2024-05-07 10:52:18:Process 0 sends its own status [0,4] to process 0
DEBUG:2024-05-07 10:52:18:Process 0 receives its own status [0,4] from process 0
DEBUG:2024-05-07 10:52:18:Process 0 sends its own status [4,8] to process 1
DEBUG:2024-05-07 10:52:18:The size of a single packet is 64 bytes
DEBUG:2024-05-07 10:52:18:Process 0 sends its own status [8,12] to process 2
DEBUG:2024-05-07 10:52:18:The size of a single packet is 64 bytes
DEBUG:2024-05-07 10:52:18:Process 0 sends its own status [12,16] to process 3
DEBUG:2024-05-07 10:52:18:The size of a single packet is 64 bytes
DEBUG:2024-05-07 10:52:18:Process 0 receives its own status [4,8] from process 1
DEBUG:2024-05-07 10:52:18:The size of a single packet is 64 bytes
DEBUG:2024-05-07 10:52:18:Process 0 receives its own status [12,16] from process 1
DEBUG:2024-05-07 10:52:18:The size of a single packet is 64 bytes
DEBUG:2024-05-07 10:52:18:All data of process 0 is ready
DEBUG:2024-05-07 10:52:18:Rank 0 start executing the 3-th subcirc
DEBUG:2024-05-07 10:52:18:The qubit acted on by the previous subcircuit
DEBUG:2024-05-07 10:52:18:[0, 1, 2, 5]
DEBUG:2024-05-07 10:52:18:The qubit that the current subcircuit acts on
DEBUG:2024-05-07 10:52:18:[0, 1, 2, 3]
DEBUG:2024-05-07 10:52:18:Process 0 sends its own status [0,8] to process 0
DEBUG:2024-05-07 10:52:18:Process 0 receives its own status [0,8] from process 0
DEBUG:2024-05-07 10:52:18:Process 0 sends its own status [8,16] to process 2
DEBUG:2024-05-07 10:52:18:The size of a single packet is 128 bytes
DEBUG:2024-05-07 10:52:18:Process 0 receives its own status [8,16] from process 1
DEBUG:2024-05-07 10:52:18:The size of a single packet is 128 bytes
Loading

0 comments on commit 68cd034

Please sign in to comment.