Parallel
QASM2 extension for parallel execution of gates.
cz
cz(
ctrls: ilist.IList[Qubit, Any] | list,
qargs: ilist.IList[Qubit, Any] | list,
) -> None
Apply a controlled-Z gate to input qubits in parallel.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
ctrls
|
IList[Qubit] | list[Qubit]
|
The control qubits. |
required |
qargs
|
IList[Qubit] | list[Qubit]
|
The target qubits. |
required |
Source code in src/bloqade/qasm2/parallel.py
12 13 14 15 16 17 18 19 20 21 22 |
|
rz
rz(
qargs: ilist.IList[Qubit, Any] | list, theta: float
) -> None
Apply a RZ gate to input qubits in parallel.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
qargs
|
IList[Qubit] | list[Qubit]
|
The target qubits. |
required |
theta
|
float
|
The angle theta. |
required |
Source code in src/bloqade/qasm2/parallel.py
40 41 42 43 44 45 46 47 48 |
|
u
u(
qargs: ilist.IList[Qubit, Any] | list,
theta: float,
phi: float,
lam: float,
) -> None
Apply a U gate to input qubits in parallel.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
qargs
|
IList[Qubit] | list[Qubit]
|
The target qubits. |
required |
theta
|
float
|
The angle theta. |
required |
phi
|
float
|
The angle phi. |
required |
lam
|
float
|
The angle lam. |
required |
Source code in src/bloqade/qasm2/parallel.py
25 26 27 28 29 30 31 32 33 34 35 36 37 |
|