|
QNLP
v1.0
|

Public Member Functions | |
| def | __init__ (self, simulator) |
| def | createU (self, list vals) |
| def | RX (self, theta) |
| def | RY (self, theta) |
| def | RZ (self, theta) |
| def | RZPh (self, theta) |
| def | RU (self, theta, U) |
Data Fields | |
| gates | |
| X | |
| Y | |
| Z | |
| H | |
| I | |
| Xnp | |
| Ynp | |
| Znp | |
| Hnp | |
| Inp | |
This class is primarily for experimenting with gate operations during algorithm development. This wraps the underlying gate types from the given simulator, and also gives a numpy version. THIS IS NOT TO BE USED FOR PERFORMANT/PRODUCTION CODE AND IS STRICTLY FOR DEV/TEST.
Definition at line 15 of file __init__.py.
| def PyQNLPSimulator.GateOps.__init__ | ( | self, | |
| simulator | |||
| ) |
Definition at line 22 of file __init__.py.
| def PyQNLPSimulator.GateOps.createU | ( | self, | |
| list | vals | ||
| ) |
Definition at line 46 of file __init__.py.
Referenced by PyQNLPSimulator.GateOps.RU().

| def PyQNLPSimulator.GateOps.RU | ( | self, | |
| theta, | |||
| U | |||
| ) |
Definition at line 63 of file __init__.py.
References PyQNLPSimulator.GateOps.createU().

| def PyQNLPSimulator.GateOps.RX | ( | self, | |
| theta | |||
| ) |
Definition at line 49 of file __init__.py.
References PyQNLPSimulator.GateOps.Xnp.
| def PyQNLPSimulator.GateOps.RY | ( | self, | |
| theta | |||
| ) |
Definition at line 52 of file __init__.py.
References PyQNLPSimulator.GateOps.Ynp.
| def PyQNLPSimulator.GateOps.RZ | ( | self, | |
| theta | |||
| ) |
Definition at line 55 of file __init__.py.
References PyQNLPSimulator.GateOps.Znp.
| def PyQNLPSimulator.GateOps.RZPh | ( | self, | |
| theta | |||
| ) |
Definition at line 58 of file __init__.py.
| PyQNLPSimulator.GateOps.gates |
Definition at line 23 of file __init__.py.
| PyQNLPSimulator.GateOps.H |
Definition at line 37 of file __init__.py.
| PyQNLPSimulator.GateOps.Hnp |
Definition at line 43 of file __init__.py.
| PyQNLPSimulator.GateOps.I |
Definition at line 38 of file __init__.py.
| PyQNLPSimulator.GateOps.Inp |
Definition at line 44 of file __init__.py.
| PyQNLPSimulator.GateOps.X |
Definition at line 34 of file __init__.py.
| PyQNLPSimulator.GateOps.Xnp |
Definition at line 40 of file __init__.py.
Referenced by PyQNLPSimulator.GateOps.RX().
| PyQNLPSimulator.GateOps.Y |
Definition at line 35 of file __init__.py.
| PyQNLPSimulator.GateOps.Ynp |
Definition at line 41 of file __init__.py.
Referenced by PyQNLPSimulator.GateOps.RY().
| PyQNLPSimulator.GateOps.Z |
Definition at line 36 of file __init__.py.
| PyQNLPSimulator.GateOps.Znp |
Definition at line 42 of file __init__.py.
Referenced by PyQNLPSimulator.GateOps.RZ().