Skip to content

Commit d6649b6

Browse files
committed
Breaking changes
1 parent 65ce6e5 commit d6649b6

File tree

9 files changed

+28
-31
lines changed

9 files changed

+28
-31
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,5 @@ LocalPreferences.toml
3030
*.jld2
3131
*.jls
3232

33+
thesis/*
34+
/thesis/

Project.toml

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,14 @@
11
name = "MonitoredQuantumCircuits"
22
uuid = "d8bf802c-9929-44b5-8e59-9c739daaeb6f"
33
authors = ["Quinten Preiss"]
4-
version = "0.1.0-DEV"
4+
version = "0.2.0"
55

66
[deps]
7-
AllocCheck = "9b6a8646-10ed-4001-bbdc-1d2f46dfbb1a"
8-
CSV = "336ed68f-0bac-5ca0-87d4-7b16caf5d00b"
9-
Colors = "5ae59095-9a9b-59fe-a467-6f913c188581"
10-
Combinatorics = "861a8166-3701-5b0c-9a16-15d98fcdc6aa"
117
CondaPkg = "992eb4ea-22a4-4c89-a5bb-47a3300528ab"
12-
Crayons = "a8cc5b0e-0ffa-5ad4-8c14-923d3ee1735f"
13-
DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0"
14-
FileIO = "5789e2e9-d7fb-5bc7-8068-2c6fae9b9549"
15-
FunctionWrappers = "069b7b12-0de2-55c6-9aab-29f3d0a68a2e"
168
Graphs = "86223c79-3864-5bf0-83f7-82e725a168b6"
17-
InteractiveUtils = "b77e0a4c-d291-57a0-90e8-8db25a27a240"
18-
JLD2 = "033835bb-8acc-5ee8-8aae-3f567f8a3819"
19-
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
209
PyQDecoders = "17f5de1a-9b79-4409-a58d-4d45812840f7"
2110
PythonCall = "6099a3de-0909-46bc-b1f4-468b9a2dfc0d"
2211
QuantumClifford = "0525e862-1e90-11e9-3e4d-1b39d7109de1"
23-
Serialization = "9e88b42a-f829-5b0c-bbe9-9e923198166b"
24-
StatsBase = "2913bbd2-ae8a-5f71-8c99-4fb6c76f3a91"
2512
cuStateVec = "92f7fd98-d22e-4c0d-85a8-6ade11b672fb"
2613

2714
[weakdeps]
@@ -35,19 +22,13 @@ MonitoredQuantumCircuitsMPIExt = "MPI"
3522
MonitoredQuantumCircuitsMakieExt = "Makie"
3623

3724
[compat]
38-
AllocCheck = "0.2.2"
39-
CSV = "0.10.14"
4025
CUDA = "5.7.2"
41-
DataFrames = "1.6.1"
42-
FileIO = "1.16.3"
43-
FunctionWrappers = "1.1.3"
4426
Graphs = "1.11.1"
4527
MPI = "0.20.22"
4628
Makie = "0.22.2"
4729
PyQDecoders = "0.2.2"
4830
PythonCall = "0.9.20"
4931
QuantumClifford = "0.9.18"
50-
StatsBase = "0.34.3"
5132
cuStateVec = "1.3.1"
5233
julia = "1.10.4"
5334

examples/2D_GHZ/simulation.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
function simulate_QuantumClifford(;shots=10000,postselect=false)
1+
function simulate_QuantumClifford(;shots=10,postselect=false)
22
g = IBMQ_Falcon()
33
backend = QuantumClifford.TableauSimulator(nQubits(g);
44
mixed=false, basis=:Z)
@@ -13,7 +13,7 @@ function simulate_QuantumClifford(;shots=10000,postselect=false)
1313
return magnetization
1414
end
1515

16-
function simulate_Qiskit(;shots=10000,postselect=false)
16+
function simulate_Qiskit(;shots=10,postselect=false)
1717
g = IBMQ_Falcon()
1818
backend = Qiskit.CliffordSimulator(nQubits(g);ancillas=nControlQubits(g))
1919

examples/Honeycomb/simulation.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
function simulate_QuantumClifford(L,n;shots=10000,depth=100)
1+
function simulate_QuantumClifford(L,n=10;shots=10,depth=10)
22
g = HoneycombGeometry(Periodic, L, L)
33
ps = generateProbs(;n)
44
backend = QuantumClifford.TableauSimulator(nQubits(g); mixed=true)

examples/TransverseFieldIsing/simulation.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
function simulate_QuantumClifford(L,ps;shots=10000,depth=100)
1+
function simulate_QuantumClifford(L,ps;shots=10,depth=10)
22
g = ChainGeometry(Periodic, L)
33
backend = QuantumClifford.TableauSimulator(nQubits(g); mixed=false, basis=:X)
44

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
function simulate_QuantumClifford(L,ps;shots=10,depth=10)
2+
g = ChainGeometry(Periodic, L)
3+
backend = QuantumClifford.TableauSimulator(nQubits(g); mixed=false, basis=:X)
4+
5+
entanglement = zeros(Float64, length(ps))
6+
for (i, p) in enumerate(ps)
7+
post = (s) -> begin
8+
entanglement[i] += QuantumClifford.entanglement_entropy(backend.state, 1:div(L,2))
9+
end
10+
execute!(()->monitoredTransverseFieldIsingFibonacci!(backend, g, p; depth), backend, post; shots=shots)
11+
end
12+
13+
return entanglement ./= shots
14+
end

src/Backends/Qiskit/IBMBackend.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ function Base.show(io::IO, ::MIME"text/plain", obj::IBMBackend)
4343
println(io, get_circuit(obj).python_interface)
4444
end
4545

46-
function MQC.execute(backend::IBMBackend; shots=1)
46+
function MQC.execute!(backend::IBMBackend; shots=1)
4747
qc = get_circuit(backend)
4848
transpile!(qc, backend)
4949
sampler = Sampler(backend)

src/Backends/QuantumClifford/QuantumClifford.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ module QuantumClifford
33
import QuantumClifford as QC
44
using QuantumClifford
55
import ...MonitoredQuantumCircuits
6-
using StatsBase
7-
using LinearAlgebra
6+
# using StatsBase
7+
# using LinearAlgebra
88

99

1010
include("operations/util/fastSingleQubit.jl")

src/MonitoredQuantumCircuits.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
module MonitoredQuantumCircuits
22

33
using Graphs
4-
using JLD2
5-
using Serialization
6-
using StatsBase
7-
using LinearAlgebra
4+
# using JLD2
5+
# using Serialization
6+
# using StatsBase
7+
# using LinearAlgebra
88

99
using PythonCall
1010
using CondaPkg

0 commit comments

Comments
 (0)