-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
141 additions
and
161 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
from qiskit import QuantumCircuit | ||
from qiskit.circuit.random import random_circuit | ||
|
||
|
||
def circuit_1(): | ||
num_qubits = 7 | ||
circuit = random_circuit(num_qubits, 6, max_operands=2, seed=1242) | ||
return circuit | ||
|
||
|
||
def circuit_2(): | ||
circuit = QuantumCircuit(4) | ||
circuit.x(0) | ||
circuit.cx(0, 1) | ||
circuit.cx(1, 2) | ||
circuit.cx(2, 3) | ||
circuit.cx(3, 2) | ||
circuit.cx(2, 1) | ||
circuit.cx(1, 0) | ||
return circuit | ||
|
||
|
||
def circuit_3(): | ||
circuit = QuantumCircuit(4) | ||
circuit.h(0) | ||
circuit.cx(0, 1) | ||
circuit.cx(1, 2) | ||
circuit.cx(2, 3) | ||
circuit.cx(3, 2) | ||
circuit.cx(2, 1) | ||
circuit.cx(1, 0) | ||
return circuit | ||
|
||
|
||
def circuit_4(): | ||
circuit = QuantumCircuit(5) | ||
circuit.h(0) | ||
circuit.cx(0, 1) | ||
circuit.cx(1, 2) | ||
circuit.cx(1, 0) | ||
circuit.cx(2, 0) | ||
circuit.cx(2, 3) | ||
circuit.cx(3, 4) | ||
circuit.cx(2, 4) | ||
return circuit | ||
|
||
|
||
def circuit_5(): | ||
circuit = QuantumCircuit(4) | ||
circuit.x(0) | ||
circuit.cx(0, 1) | ||
circuit.cx(1, 2) | ||
circuit.cx(3, 2) | ||
circuit.cx(2, 1) | ||
circuit.cx(1, 0) | ||
return circuit |