Simulator, circuits and the viewer#
The state-vector simulator, circuits for the quantum-like families, back ends, the allocation container and the Bloch-sphere viewer. The equations are on the mathematics page.
Legend: blue inputs, violet internal steps, green outputs, coral people, dashed grey classical baselines. Each entry is labelled by origin: Unique to Quantum Mind designed in this library; it builds on the methods cited with it, Published model, extended implements the cited model as published; Quantum Mind adds the capabilities listed, Published method implements the cited method as published, Software tool infrastructure rather than a model; and by category: Quantum-like quantum probability used to model people; runs on an ordinary computer, Quantum computing quantum circuits; run on the simulator or sent to quantum hardware, Classical classical statistics, decision theory or baselines, Mixed combines parts from more than one of these categories.
State-vector simulator#
Software tool Quantum computing
Batched NumPy simulation of parameterised circuits with adjoint gradients and Qiskit export.
flowchart LR
accTitle: Block diagram of State-vector simulator
accDescr: Batched NumPy simulation of parameterised circuits with adjoint gradients and Qiskit export.
c["gates with angles<br/>W(k) · X(j) · constants"]:::in --> sim["batched state vectors"]:::op --> p["probabilities · ⟨Z⟩"]:::out
sim --> g["adjoint gradients"]:::out
c --> qk["to_qiskit()"]:::out
classDef in fill:#0b2a4a,stroke:#79c0ff,color:#e6edf3
classDef op fill:#2a1b3d,stroke:#d2a8ff,color:#e6edf3
classDef out fill:#0f2e1a,stroke:#7ee787,color:#e6edf3
classDef hum fill:#3d1414,stroke:#ff7b72,color:#e6edf3
classDef base fill:#262626,stroke:#8b949e,color:#e6edf3,stroke-dasharray:4 3
API:
CircuitTutorial: Introduction to Quantum Mind
Origin: Software tool: infrastructure rather than a model.
Category: Quantum computing: quantum circuits; run on the simulator or sent to quantum hardware.
Reference: Jones, T., & Gacon, J. (2020). arXiv:2009.02823 (adjoint differentiation).
QUBO container#
Software tool Classical
The binary-optimisation container used by trust-aware allocation: exact brute force for small teams and an Ising export for external solvers.
flowchart LR
accTitle: Block diagram of QUBO container
accDescr: The binary-optimisation container used by trust-aware allocation: exact brute force for small teams and an Ising export for external solvers.
pb["trust-aware allocation costs"]:::in --> Q["QUBO: xᵀQx + offset"]:::op
Q --> bf["brute force"]:::out & ising["Ising export<br/>(any external solver)"]:::out
classDef in fill:#0b2a4a,stroke:#79c0ff,color:#e6edf3
classDef op fill:#2a1b3d,stroke:#d2a8ff,color:#e6edf3
classDef out fill:#0f2e1a,stroke:#7ee787,color:#e6edf3
classDef hum fill:#3d1414,stroke:#ff7b72,color:#e6edf3
classDef base fill:#262626,stroke:#8b949e,color:#e6edf3,stroke-dasharray:4 3
API:
QuboOrigin: Software tool: infrastructure rather than a model.
Category: Classical: classical statistics, decision theory or baselines.
Reference: Lucas, A. (2014). Frontiers in Physics, 2, 5.
Trust-aware task allocation#
Unique to Quantum Mind Mixed
Assign tasks among people working with a robot: robot-assisted tasks cost more with a person who does not trust the robot, and heavy workloads are penalised. The trust values come from the people models.
flowchart LR
accTitle: Block diagram of Trust-aware task allocation
accDescr: Assign tasks among people working with a robot: robot-assisted tasks cost more with a person who does not trust the robot, and heavy workloads are penalised. The trust values come from the people models.
T["trust per person<br/>trust qubit · online posterior"]:::hum --> C["expected cost<br/>C + F·r·(1 − τ)"]:::op
B[("effort per person and task")]:::in --> C
C --> Q["QUBO + workload term"]:::op --> S["exact · Ising export"]:::op --> A["who does what"]:::out
blind["trust-blind allocation"]:::base -.-> A
classDef in fill:#0b2a4a,stroke:#79c0ff,color:#e6edf3
classDef op fill:#2a1b3d,stroke:#d2a8ff,color:#e6edf3
classDef out fill:#0f2e1a,stroke:#7ee787,color:#e6edf3
classDef hum fill:#3d1414,stroke:#ff7b72,color:#e6edf3
classDef base fill:#262626,stroke:#8b949e,color:#e6edf3,stroke-dasharray:4 3
API:
trust_aware_allocation(),expected_costs(),decode()Compared with: trust-blind task allocation
Origin: Unique to Quantum Mind: designed in this library; it builds on the methods cited with it.
Category: Mixed: combines parts from more than one of these categories.
Reference: Lucas, A. (2014). Frontiers in Physics, 2, 5 (allocation QUBO); trust from Busemeyer & Bruza (2024) and Roeder et al. (2023).
Circuits for the quantum-like families#
Unique to Quantum Mind Quantum computing
Each quantum-like family as a Qiskit circuit whose measured frequencies reproduce the model.
flowchart LR
accTitle: Block diagram of Circuits for the quantum-like families
accDescr: Each quantum-like family as a Qiskit circuit whose measured frequencies reproduce the model.
m["fitted model"]:::in --> u["subspace unitaries"]:::op --> fl["flag qubits record answers"]:::op --> qc["Qiskit circuit"]:::out
classDef in fill:#0b2a4a,stroke:#79c0ff,color:#e6edf3
classDef op fill:#2a1b3d,stroke:#d2a8ff,color:#e6edf3
classDef out fill:#0f2e1a,stroke:#7ee787,color:#e6edf3
classDef hum fill:#3d1414,stroke:#ff7b72,color:#e6edf3
classDef base fill:#262626,stroke:#8b949e,color:#e6edf3,stroke-dasharray:4 3
API:
order_effects_circuit(),belief_circuit(),qlbn_circuit()Origin: Unique to Quantum Mind: designed in this library; it builds on the methods cited with it.
Category: Quantum computing: quantum circuits; run on the simulator or sent to quantum hardware.
Back ends#
Software tool Quantum computing
Run a circuit on Aer, a fake IBM device, IBM Quantum or Amazon Braket.
flowchart LR
accTitle: Block diagram of Back ends
accDescr: Run a circuit on Aer, a fake IBM device, IBM Quantum or Amazon Braket.
qc["circuit"]:::in --> r{"run(qc, backend)"}:::op --> aer["Aer"]:::out & fake["FakeTorino"]:::out & ibm["IBM Quantum"]:::out & br["Amazon Braket"]:::out
classDef in fill:#0b2a4a,stroke:#79c0ff,color:#e6edf3
classDef op fill:#2a1b3d,stroke:#d2a8ff,color:#e6edf3
classDef out fill:#0f2e1a,stroke:#7ee787,color:#e6edf3
classDef hum fill:#3d1414,stroke:#ff7b72,color:#e6edf3
classDef base fill:#262626,stroke:#8b949e,color:#e6edf3,stroke-dasharray:4 3
API:
run()Origin: Software tool: infrastructure rather than a model.
Category: Quantum computing: quantum circuits; run on the simulator or sent to quantum hardware.
Bloch-sphere viewer#
Software tool Quantum computing
Trajectories of qubits through circuits or beliefs, drawn statically or animated.
flowchart LR
accTitle: Block diagram of Bloch-sphere viewer
accDescr: Trajectories of qubits through circuits or beliefs, drawn statically or animated.
src["circuit · belief model · state"]:::in --> tr["trajectory of Bloch vectors"]:::op --> st["Matplotlib figure"]:::out
tr --> an["Plotly animation / HTML"]:::out
tr --> ent["entanglement and concurrence"]:::out
classDef in fill:#0b2a4a,stroke:#79c0ff,color:#e6edf3
classDef op fill:#2a1b3d,stroke:#d2a8ff,color:#e6edf3
classDef out fill:#0f2e1a,stroke:#7ee787,color:#e6edf3
classDef hum fill:#3d1414,stroke:#ff7b72,color:#e6edf3
classDef base fill:#262626,stroke:#8b949e,color:#e6edf3,stroke-dasharray:4 3
API:
circuit_trajectory(),belief_trajectory(),plot_bloch(),animate_bloch()Tutorial: Seeing qubits: the Bloch-sphere viewer
Origin: Software tool: infrastructure rather than a model.
Category: Quantum computing: quantum circuits; run on the simulator or sent to quantum hardware.
Reference: Wootters, W. K. (1998). Physical Review Letters, 80, 2245.