qrao.encoding¶
Quantum Random Access Encoding module.
Contains code dealing with QRACs (quantum random access codes) and preparation of such states.
|
Return the basis rotation corresponding to the (3,1,p)-QRAC |
|
Return the basis rotation corresponding to the (2,1,p)-QRAC |
Prepare a single qubit QRAC state |
|
|
Prepare a multiqubit QRAC state. |
|
This class specifies a Quantum Random Access Code that can be used to encode the binary variables of a QUBO (quadratic unconstrained binary optimization problem). |
Functions
|
Calculate q2vars given var2op |
Prepare a single qubit QRAC state |
|
|
Prepare a multiqubit QRAC state. |
|
Return the basis rotation corresponding to the (2,1,p)-QRAC |
|
Return the basis rotation corresponding to the (3,1,p)-QRAC |
Classes
|
Class for verifying that the relaxation commutes with the objective function |
|
This class specifies a Quantum Random Access Code that can be used to encode the binary variables of a QUBO (quadratic unconstrained binary optimization problem). |