Skip to content

Commit

Permalink
Update meta, for Qrack plugin OS/CPU mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
WrathfulSpatula committed Jul 14, 2022
1 parent 56e720b commit fee0429
Show file tree
Hide file tree
Showing 8 changed files with 93 additions and 590 deletions.
37 changes: 37 additions & 0 deletions Assets/Qrack/Plugin/Mac/x86_64/libqrack_pinvoke.7.1.1.dylib.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

41 changes: 39 additions & 2 deletions Assets/Qrack/Plugin/iOS/libqrack_pinvoke.7.1.1.dylib.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 3 additions & 4 deletions Assets/Qrack/Qasm/TeleportAlice.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,8 @@ protected override void StartProgram()
Action = (time) =>
{
RelativisticObject ro = RelativisticObject;
ro.transform.rotation = Quaternion.identity;
ro.transform.eulerAngles = new Vector3((float)coords.inclination * Mathf.Rad2Deg, (float)coords.azimuth * Mathf.Rad2Deg, 0.0f);
ro.riw = qs.transform.rotation;
ro.transform.rotation = Quaternion.Euler(new Vector3((float)coords.inclination * Mathf.Rad2Deg, (float)coords.azimuth * Mathf.Rad2Deg, 0.0f));
ro.riw = ro.transform.rotation;
ro.localScale = new Vector3((float)coords.r, (float)coords.r, (float)coords.r);
}
});
Expand All @@ -43,7 +42,7 @@ protected override void StartProgram()

ProgramInstructions.Add(new RealTimeQasmInstruction()
{
DeltaTime = 0.1f,
DeltaTime = 0.5f,
quantumProgramUpdate = (x, y) =>
{
ClassicalBitRegisters[0] = QuantumSystem.M(0);
Expand Down
5 changes: 2 additions & 3 deletions Assets/Qrack/Qasm/TeleportBob.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,8 @@ protected void StartTriggeredProgram()
Action = (time) =>
{
RelativisticObject ro = RelativisticObject;
ro.transform.rotation = Quaternion.identity;
ro.transform.eulerAngles = new Vector3((float)coords.inclination * Mathf.Rad2Deg, (float)coords.azimuth * Mathf.Rad2Deg, 0.0f);
ro.riw = qs.transform.rotation;
ro.transform.rotation = Quaternion.Euler(new Vector3((float)coords.inclination * Mathf.Rad2Deg, (float)coords.azimuth * Mathf.Rad2Deg, 0.0f));
ro.riw = ro.transform.rotation;
ro.localScale = new Vector3((float)coords.r, (float)coords.r, (float)coords.r);
}
});
Expand Down
8 changes: 3 additions & 5 deletions Assets/Qrack/Scripts/QuantumManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ public BlochSphereCoordinates(double px, double py, double pz)
probY = py;
probZ = pz;

double x = 2 * ((1.0 / 2.0) - probX);
double y = 2 * ((1.0 / 2.0) - probY);
double z = 2 * ((1.0 / 2.0) - probZ);
double x = 1.0 - 2 * probX;
double y = 1.0 - 2 * probY;
double z = 1.0 - 2 * probZ;

r = Math.Sqrt(x * x + y * y + z * z);
inclination = Math.Atan2(Math.Sqrt(x * x + y * y), z);
Expand Down Expand Up @@ -381,9 +381,7 @@ public static BlochSphereCoordinates Prob3Axis(uint simId, uint target)
H(simId, target);
double probX = Prob(simId, target);
S(simId, target);
H(simId, target);
double probY = Prob(simId, target);
H(simId, target);
AdjS(simId, target);
H(simId, target);

Expand Down
Loading

0 comments on commit fee0429

Please sign in to comment.