|
Sequential Quantum Gate Decomposer
v1.9.6
Powerful decomposition of general unitarias into one- and two-qubit gates gates
|
Public Member Functions | |
| def | __init__ (self, n_qubits) |
| def | amp_damp (self, t, gamma) |
| def | CNOT (self, tgt, ctrl) |
| def | CZ (self, tgt, ctrl) |
| def | depolarizing (self, p) |
| def | get_parameter_vector (self) |
| def | H (self, t) |
| def | local_depolarizing (self, t, p) |
| def | phase_damp (self, t, lam) |
| def | run (self) |
| def | run_qiskit (self) |
| def | run_squander (self) |
| def | S (self, t) |
| def | Sdg (self, t) |
| def | SX (self, t) |
| def | T (self, t) |
| def | Tdg (self, t) |
| def | U3 (self, t, theta, phi, lam) |
| def | X (self, t) |
| def | Y (self, t) |
| def | Z (self, t) |
Public Attributes | |
| n | |
| ops | |
| params | |
| qk | |
| sq | |
Build identical circuits in both SQUANDER and Qiskit frameworks.
Definition at line 27 of file circuits.py.
| def circuits.DualBuilder.__init__ | ( | self, | |
| n_qubits | |||
| ) |
Definition at line 30 of file circuits.py.
| def circuits.DualBuilder.amp_damp | ( | self, | |
| t, | |||
| gamma | |||
| ) |
Definition at line 114 of file circuits.py.
| def circuits.DualBuilder.CNOT | ( | self, | |
| tgt, | |||
| ctrl | |||
| ) |
Definition at line 93 of file circuits.py.
| def circuits.DualBuilder.CZ | ( | self, | |
| tgt, | |||
| ctrl | |||
| ) |
Definition at line 98 of file circuits.py.
| def circuits.DualBuilder.depolarizing | ( | self, | |
| p | |||
| ) |
Definition at line 104 of file circuits.py.
| def circuits.DualBuilder.get_parameter_vector | ( | self | ) |
Return the numeric parameter vector used for parametric operations.
Definition at line 164 of file circuits.py.
| def circuits.DualBuilder.H | ( | self, | |
| t | |||
| ) |
Definition at line 38 of file circuits.py.
| def circuits.DualBuilder.local_depolarizing | ( | self, | |
| t, | |||
| p | |||
| ) |
Definition at line 109 of file circuits.py.
| def circuits.DualBuilder.phase_damp | ( | self, | |
| t, | |||
| lam | |||
| ) |
Definition at line 119 of file circuits.py.
| def circuits.DualBuilder.run | ( | self | ) |
Execute both and return density matrices as numpy arrays.
Definition at line 125 of file circuits.py.

| def circuits.DualBuilder.run_qiskit | ( | self | ) |
Execute Qiskit only using optimal Aer density matrix simulation. Uses AerSimulator with method='density_matrix' which: - Directly simulates the density matrix evolution - Natively handles QuantumError noise channels (depolarizing, amplitude/phase damping) - Is more efficient than qiskit.quantum_info.DensityMatrix.evolve() for noisy circuits
Definition at line 142 of file circuits.py.

| def circuits.DualBuilder.run_squander | ( | self | ) |
Execute SQUANDER only.
Definition at line 136 of file circuits.py.


| def circuits.DualBuilder.S | ( | self, | |
| t | |||
| ) |
Definition at line 58 of file circuits.py.
| def circuits.DualBuilder.Sdg | ( | self, | |
| t | |||
| ) |
Definition at line 68 of file circuits.py.
| def circuits.DualBuilder.SX | ( | self, | |
| t | |||
| ) |
Definition at line 78 of file circuits.py.
| def circuits.DualBuilder.T | ( | self, | |
| t | |||
| ) |
Definition at line 63 of file circuits.py.
| def circuits.DualBuilder.Tdg | ( | self, | |
| t | |||
| ) |
Definition at line 73 of file circuits.py.
| def circuits.DualBuilder.U3 | ( | self, | |
| t, | |||
| theta, | |||
| phi, | |||
| lam | |||
| ) |
Definition at line 83 of file circuits.py.
| def circuits.DualBuilder.X | ( | self, | |
| t | |||
| ) |
Definition at line 43 of file circuits.py.
| def circuits.DualBuilder.Y | ( | self, | |
| t | |||
| ) |
Definition at line 48 of file circuits.py.
| def circuits.DualBuilder.Z | ( | self, | |
| t | |||
| ) |
Definition at line 53 of file circuits.py.
| circuits.DualBuilder.n |
Definition at line 31 of file circuits.py.
| circuits.DualBuilder.ops |
Definition at line 34 of file circuits.py.
| circuits.DualBuilder.params |
Definition at line 35 of file circuits.py.
| circuits.DualBuilder.qk |
Definition at line 33 of file circuits.py.
| circuits.DualBuilder.sq |
Definition at line 32 of file circuits.py.
1.8.13