Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

initial implementation of naive_encoding_circuit #184

Closed

Conversation

amicciche
Copy link
Member

Everything seems to be working for the encoding circuits I'm generating except for the logical X pauli frame measurement. My hunch is that it has to do with preparing the initial state in the X basis, but my reasoning leads me to think that there should be Hadamard gates on the first k qubits, where k is the number of qubits to be encoded. The current implementation of the logical X measurement applies a Hadamard to gate 1, which for Shor9 and Steane7 is correct (for them, k=1). Is my understanding correct? Do you have some other idea what might be the problem?

Anyway here are the good results:
Logical vs Physical error plots, generated using Cleve97 style encoding circuits, as well as the reindexing stabilizer tableau:

image
image

Encoding circuit generated for Steane7:
image

Encoding circuit generated for Shor9:
image

Encoding circuit generated for Cleve8 (the circuit in the paper)
image

My $X*$ and $Z*$ ended up a little different from the paper, but I believe that it was simply due to some differences in the exact Gaussian elimination operations performed. Here are my matrices:

julia> Xstar
8×8 Matrix{Bool}:
 1  0  0  0  1  1  0  1
 0  1  0  0  1  1  1  0
 0  0  1  0  1  0  1  1
 1  1  1  0  0  1  1  1
 0  0  0  0  1  0  0  0
 0  0  0  0  0  1  0  0
 0  0  0  0  0  0  1  0
 0  0  0  0  0  0  0  1

julia> Zstar
8×8 Matrix{Bool}:
 0  0  0  1  1  1  1  1
 0  0  0  1  1  0  1  0
 0  0  0  1  0  1  0  1
 0  0  0  1  1  1  0  0
 0  0  0  1  0  0  0  0
 0  0  0  1  1  0  0  1
 0  0  0  1  0  0  1  1
 0  0  0  1  0  1  1  0

Tomorrow I will work on cleaning things up, doing more testing, hopefully figuring out the logical X measurement, and also implementing code for $B'$ part of the paper. Steane7, Shor9, and Cleve8 all have $r_2=0$, so $X^{(1)}==X^{(2)}$ and $Z^{(1)}==Z^{(2)}$. For that reason, I left that as a TODO, since I need to find or come up with a code which has a nonzero value for $r_2$ so that I can properly test and troubleshoot.

… cleanup, and calculation of B' (that part wasn't necessary for all codes currently available in the library (they all have r2=0))
@codecov
Copy link

codecov bot commented Sep 4, 2023

Codecov Report

Merging #184 (4174d2a) into master (4e767d2) will decrease coverage by 4.16%.
Report is 2 commits behind head on master.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##           master     #184      +/-   ##
==========================================
- Coverage   83.42%   79.27%   -4.16%     
==========================================
  Files          45       48       +3     
  Lines        3415     3594     +179     
==========================================
  Hits         2849     2849              
- Misses        566      745     +179     
Files Changed Coverage Δ
src/ecc/ECC.jl 39.91% <0.00%> (-50.74%) ⬇️
src/ecc/cleavecode.jl 0.00% <0.00%> (ø)
src/ecc/fiveonethreecode.jl 0.00% <0.00%> (ø)
src/ecc/fivetwotwocode.jl 0.00% <0.00%> (ø)

... and 5 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@amicciche
Copy link
Member Author

Speaking of there not being a built in code that has the property needed to fully test the canonicalization in the 1997 Cleve and Gottesman paper, should we open an issue to combine all the src/ecc/[insert_name]code.jl files into one big src/ecc/codezoo.jl file?
And then add a considerable number of additional codes?

src/ecc/ECC.jl Outdated Show resolved Hide resolved
@Krastanov
Copy link
Member

I think I would prefer to keep the various codes in separate files that get included, just for organization purposes. But yes, adding more codes would be quite valuable and I am trying to get a few undergrads to help with that.

Currently I have a couple of vague worries about the approach taken (but I can be convinced otherwise):

  • the tableaux are converted to much more expensive boolean array form and then back, which is a bit wasteful -- other canonicalization schemes just work directly on the tableaux
  • the canonicalize_gott scheme is extremely close to the one used here (together with the extra processing done in the constructor of MixedDestablizer) -- it would be quite valuable to figure out how much can be reused.

I will try to provide a more detailed review later in the week.

A few minor things:

  • use error("error message") instead of println("ERROR")
  • use @debug instead of println("debug message") and set your log level to debug

@amicciche
Copy link
Member Author

amicciche commented Sep 4, 2023

I think I would prefer to keep the various codes in separate files that get included, just for organization purposes. But yes, adding more codes would be quite valuable and I am trying to get a few undergrads to help with that.

Currently I have a couple of vague worries about the approach taken (but I can be convinced otherwise):

  • the tableaux are converted to much more expensive boolean array form and then back, which is a bit wasteful -- other canonicalization schemes just work directly on the tableaux
  • the canonicalize_gott scheme is extremely close to the one used here (together with the extra processing done in the constructor of MixedDestablizer) -- it would be quite valuable to figure out how much can be reused.

I will try to provide a more detailed review later in the week.

A few minor things:

  • use error("error message") instead of println("ERROR")
  • use @debug instead of println("debug message") and set your log level to debug

I agree this could be done on tableaux for a reduced cost, but was thinking that would be more of a finishing touch, after I'm confident my implementation is working correctly. The matrices in the paper are the transpose of how we store tableaux, and so to make following the method in the paper less error prone, I implemented it the way I did.

My initial approach was to follow the paper, producing all intermediary calculations, $X^{(1)}$, $X^{(2)}$, etc. After I'm sure it's working well, I'll look to canonicalize_gott for ideas on how to improve performance. Or did you instead mean to write code that converts equation 4.2 in Gottesman's PhD thesis to equation 6 in the Cleve paper?

@amicciche
Copy link
Member Author

amicciche commented Sep 4, 2023

Just realized that I made a mistake - so of course the logical X measurement isn't working - the encoding circuit is correct for Cleve8, but incorrect for Steane7 and likely Shor9 as well. Cleve8 had $X^{1}=X^{2}$ because $r_1=1$, NOT because $r_0=0$, although the former implies the latter. This is not true for Steane7 and Shor9, so I need to implement the B' part for them to work.

I'll try to get a commit with the proper B' submitted sometime today, and at that time I'll let you know if logical X measurement still isn't working.

…ed the B' part, and fixed the rank calculations
@amicciche
Copy link
Member Author

amicciche commented Sep 4, 2023

My recent commit fixed the problem with the logical X error in pauli frame simulation!

Now I need to just clean it up (following the above comments) and maybe also find a way to test the generated encoding circuits on codes that encode more than one qubit. Perhaps I'll also implement the tests and other features that were in the old pull request - but is that good enough?

Here are some results:
Steane7: generated circuit and performance of that circuit using the logical pauli frame decoder evaluator.
image
image

Shor9: generated circuit and performance of that circuit using the logical pauli frame decoder evaluator.
image
image

Cleve8: generated circuit. My current setup can't evaluate this code - I believe because $k&gt;1$.
image
Here are the $X*$, $Z*$ matrices for Cleve8

julia> Xstar
8×8 Matrix{Bool}:
 1  0  0  0  1  1  1  0
 0  1  0  0  1  0  1  1
 0  0  1  0  0  1  1  1
 1  1  1  0  1  1  0  1
 0  0  0  0  1  0  0  0
 0  0  0  0  0  1  0  0
 0  0  0  0  0  0  1  0
 0  0  0  0  0  0  0  1

julia> Zstar
8×8 Matrix{Bool}:
 0  0  0  1  1  0  1  0
 0  0  0  1  0  1  0  1
 0  0  0  1  1  1  0  0
 0  0  0  1  1  1  1  1
 0  0  0  1  0  0  0  0
 0  0  0  1  1  0  0  1
 0  0  0  1  0  0  1  1
 0  0  0  1  0  1  1  0

@github-actions
Copy link
Contributor

Benchmark Result

Judge result

Benchmark Report for /home/runner/work/QuantumClifford.jl/QuantumClifford.jl

Job Properties

  • Time of benchmarks:
  • Target: 10 Sep 2023 - 20:15
  • Baseline: 10 Sep 2023 - 20:20
  • Package commits:
  • Target: 8ac83c
  • Baseline: cbd5aa
  • Julia commits:
  • Target: 7b9fdf
  • Baseline: 7b9fdf
  • Julia command flags:
  • Target: None
  • Baseline: None
  • Environment variables:
  • Target: None
  • Baseline: None

Results

A ratio greater than 1.0 denotes a possible regression (marked with ❌), while a ratio less
than 1.0 denotes a possible improvement (marked with ✅). Only significant results - results
that indicate possible regressions or improvements - are shown below (thus, an empty table means that all
benchmark results remained invariant between builds).

ID time ratio memory ratio
["circuitsim", "mctrajectories", "q1001_r1"] 0.90 (5%) ✅ 1.00 (1%)
["circuitsim", "mctrajectories", "q101_r1"] 0.89 (5%) ✅ 1.00 (1%)
["circuitsim", "mctrajectories_sumtype", "q1001_r1"] 0.89 (5%) ✅ 1.00 (1%)
["circuitsim", "mctrajectories_sumtype", "q101_r1"] 0.83 (5%) ✅ 1.00 (1%)
["circuitsim", "mctrajectories_union", "q1001_r1"] 0.89 (5%) ✅ 1.00 (1%)
["circuitsim", "mctrajectories_union", "q101_r1"] 0.83 (5%) ✅ 1.00 (1%)
["circuitsim", "pftrajectories", "q1001_r1"] 1.10 (5%) ❌ 1.00 (1%)
["circuitsim", "pftrajectories", "q1001_r100"] 1.06 (5%) ❌ 1.00 (1%)
["circuitsim", "pftrajectories", "q1001_r10000"] 1.07 (5%) ❌ 1.00 (1%)
["circuitsim", "pftrajectories", "q101_r1"] 1.10 (5%) ❌ 1.00 (1%)
["circuitsim", "pftrajectories_sumtype", "q1001_r10000"] 1.06 (5%) ❌ 1.00 (1%)
["circuitsim", "pftrajectories_union", "q1001_r100"] 1.05 (5%) ❌ 1.00 (1%)
["circuitsim", "pftrajectories_union", "q1001_r10000"] 1.07 (5%) ❌ 1.00 (1%)
["clifford", "dense", "dense500_on_dense500_stab"] 0.93 (5%) ✅ 1.00 (1%)
["clifford", "dense", "dense500_on_diag500_destab"] 1.40 (5%) ❌ 1.00 (1%)
["clifford", "symbolic", "cnot250_on_dense500_destab"] 0.86 (5%) ✅ 1.00 (1%)
["clifford", "symbolic", "cnot250_on_diag500_destab"] 0.84 (5%) ✅ 1.00 (1%)
["clifford", "symbolic", "cnot_on_dense500_destab"] 0.83 (5%) ✅ 1.00 (1%)
["clifford", "symbolic", "cnot_on_diag500_destab"] 0.83 (5%) ✅ 1.00 (1%)
["pauli", "mul", "20000000"] 1.09 (5%) ❌ 1.00 (1%)
["stabilizer", "canon", "cano500"] 1.07 (5%) ❌ 1.00 (1%)
["stabilizer", "tensor", "diag_pow5_20"] 1.08 (5%) ❌ 1.00 (1%)

Benchmark Group List

Here's a list of all the benchmark groups executed by this job:

  • ["circuitsim", "mctrajectories"]
  • ["circuitsim", "mctrajectories_sumtype"]
  • ["circuitsim", "mctrajectories_union"]
  • ["circuitsim", "pftrajectories"]
  • ["circuitsim", "pftrajectories_sumtype"]
  • ["circuitsim", "pftrajectories_union"]
  • ["clifford", "dense"]
  • ["clifford", "symbolic"]
  • ["pauli", "mul"]
  • ["stabilizer", "canon"]
  • ["stabilizer", "project"]
  • ["stabilizer", "tensor"]
  • ["stabilizer", "trace"]

Julia versioninfo

Target

Julia Version 1.11.0-DEV.443
Commit 7b9fdf852c1 (2023-09-10 01:51 UTC)
Build Info:
 Official https://julialang.org/ release
Platform Info:
 OS: Linux (x86_64-linux-gnu)
 Ubuntu 22.04.3 LTS
 uname: Linux 5.15.0-1041-azure #48-Ubuntu SMP Tue Jun 20 20:34:08 UTC 2023 x86_64 x86_64
 CPU: Intel(R) Xeon(R) Platinum 8272CL CPU @ 2.60GHz: 
 speed user nice sys idle irq
 #1 2593 MHz 7324 s 1 s 349 s 16075 s 0 s
 #2 2593 MHz 1015 s 2 s 298 s 22362 s 0 s
 Memory: 6.7694854736328125 GB (4698.08203125 MB free)
 Uptime: 2383.46 sec
 Load Avg: 1.0 1.0 0.68
 WORD_SIZE: 64
 LLVM: libLLVM-15.0.7 (ORCJIT, skylake-avx512)
 Threads: 1 on 2 virtual cores

Baseline

Julia Version 1.11.0-DEV.443
Commit 7b9fdf852c1 (2023-09-10 01:51 UTC)
Build Info:
 Official https://julialang.org/ release
Platform Info:
 OS: Linux (x86_64-linux-gnu)
 Ubuntu 22.04.3 LTS
 uname: Linux 5.15.0-1041-azure #48-Ubuntu SMP Tue Jun 20 20:34:08 UTC 2023 x86_64 x86_64
 CPU: Intel(R) Xeon(R) Platinum 8272CL CPU @ 2.60GHz: 
 speed user nice sys idle irq
 #1 2593 MHz 7404 s 1 s 409 s 19185 s 0 s
 #2 2593 MHz 4102 s 2 s 404 s 22432 s 0 s
 Memory: 6.7694854736328125 GB (4668.4609375 MB free)
 Uptime: 2709.73 sec
 Load Avg: 1.05 1.03 0.81
 WORD_SIZE: 64
 LLVM: libLLVM-15.0.7 (ORCJIT, skylake-avx512)
 Threads: 1 on 2 virtual cores

Target result

Benchmark Report for /home/runner/work/QuantumClifford.jl/QuantumClifford.jl

Job Properties

  • Time of benchmark: 10 Sep 2023 - 20:15
  • Package commit: 8ac83c
  • Julia commit: 7b9fdf
  • Julia command flags: None
  • Environment variables: None

Results

Below is a table of this job's results, obtained by running the benchmarks.
The values listed in the ID column have the structure [parent_group, child_group, ..., key], and can be used to
index into the BaseBenchmarks suite to retrieve the corresponding benchmarks.
The percentages accompanying time and memory values in the below table are noise tolerances. The "true"
time/memory value for a given benchmark is expected to fall within this percentage of the reported value.
An empty cell means that the value was zero.

ID time GC time memory allocations
["circuitsim", "mctrajectories", "q1001_r1"] 21.421 ms (5%) 500.78 KiB (1%) 18017
["circuitsim", "mctrajectories", "q101_r1"] 248.911 μs (5%) 50.53 KiB (1%) 1816
["circuitsim", "mctrajectories_sumtype", "q1001_r1"] 20.476 ms (5%) 544 bytes (1%) 8
["circuitsim", "mctrajectories_sumtype", "q101_r1"] 165.506 μs (5%) 288 bytes (1%) 7
["circuitsim", "mctrajectories_union", "q1001_r1"] 20.436 ms (5%) 544 bytes (1%) 8
["circuitsim", "mctrajectories_union", "q101_r1"] 164.206 μs (5%) 288 bytes (1%) 7
["circuitsim", "pftrajectories", "q1001_r1"] 87.002 μs (5%) 93.80 KiB (1%) 2001
["circuitsim", "pftrajectories", "q1001_r100"] 266.511 μs (5%) 93.80 KiB (1%) 2001
["circuitsim", "pftrajectories", "q1001_r10000"] 1.757 ms (5%) 93.80 KiB (1%) 2001
["circuitsim", "pftrajectories", "q101_r1"] 8.767 μs (5%) 9.42 KiB (1%) 201
["circuitsim", "pftrajectories_sumtype", "q1001_r1"] 47.707 μs (5%) 48 bytes (1%) 1
["circuitsim", "pftrajectories_sumtype", "q1001_r100"] 229.410 μs (5%) 48 bytes (1%) 1
["circuitsim", "pftrajectories_sumtype", "q1001_r10000"] 1.700 ms (5%) 48 bytes (1%) 1
["circuitsim", "pftrajectories_sumtype", "q1001_r10000_fastrow"] 9.049 ms (5%) 48 bytes (1%) 1
["circuitsim", "pftrajectories_sumtype", "q101_r1"] 4.857 μs (5%) 48 bytes (1%) 1
["circuitsim", "pftrajectories_union", "q1001_r1"] 28.300 μs (5%) 96 bytes (1%) 2
["circuitsim", "pftrajectories_union", "q1001_r100"] 209.808 μs (5%) 96 bytes (1%) 2
["circuitsim", "pftrajectories_union", "q1001_r10000"] 1.683 ms (5%) 96 bytes (1%) 2
["circuitsim", "pftrajectories_union", "q101_r1"] 2.889 μs (5%) 96 bytes (1%) 2
["clifford", "dense", "cnot250_on_dense500_destab"] 19.276 ms (5%) 512 bytes (1%) 4
["clifford", "dense", "cnot250_on_dense500_stab"] 9.350 ms (5%) 512 bytes (1%) 4
["clifford", "dense", "cnot250_on_diag500_destab"] 1.755 ms (5%) 512 bytes (1%) 4
["clifford", "dense", "cnot250_on_diag500_stab"] 618.618 μs (5%) 512 bytes (1%) 4
["clifford", "dense", "cnot_on_dense500_destab"] 69.403 μs (5%) 368 bytes (1%) 5
["clifford", "dense", "cnot_on_dense500_stab"] 31.501 μs (5%) 368 bytes (1%) 5
["clifford", "dense", "cnot_on_diag500_destab"] 35.401 μs (5%) 368 bytes (1%) 5
["clifford", "dense", "cnot_on_diag500_stab"] 17.400 μs (5%) 368 bytes (1%) 5
["clifford", "dense", "dense500_on_dense500_destab"] 19.278 ms (5%) 512 bytes (1%) 4
["clifford", "dense", "dense500_on_dense500_stab"] 9.327 ms (5%) 512 bytes (1%) 4
["clifford", "dense", "dense500_on_diag500_destab"] 1.747 ms (5%) 512 bytes (1%) 4
["clifford", "dense", "dense500_on_diag500_stab"] 618.919 μs (5%) 512 bytes (1%) 4
["clifford", "symbolic", "cnot250_on_dense500_destab"] 2.161 ms (5%)
["clifford", "symbolic", "cnot250_on_dense500_stab"] 982.530 μs (5%)
["clifford", "symbolic", "cnot250_on_diag500_destab"] 1.682 ms (5%)
["clifford", "symbolic", "cnot250_on_diag500_stab"] 830.619 μs (5%)
["clifford", "symbolic", "cnot_on_dense500_destab"] 7.625 μs (5%)
["clifford", "symbolic", "cnot_on_dense500_stab"] 3.338 μs (5%)
["clifford", "symbolic", "cnot_on_diag500_destab"] 6.720 μs (5%)
["clifford", "symbolic", "cnot_on_diag500_stab"] 3.313 μs (5%)
["pauli", "mul", "100"] 16.416 ns (5%)
["pauli", "mul", "1000"] 27.739 ns (5%)
["pauli", "mul", "100000"] 766.389 ns (5%)
["pauli", "mul", "20000000"] 455.814 μs (5%)
["stabilizer", "canon", "cano500"] 4.915 ms (5%)
["stabilizer", "canon", "diag_cano500"] 970.329 μs (5%)
["stabilizer", "canon", "diag_gott500"] 12.433 ms (5%) 5.26 MiB (1%) 24516
["stabilizer", "canon", "diag_rref500"] 753.835 μs (5%)
["stabilizer", "canon", "gott500"] 16.234 ms (5%) 5.27 MiB (1%) 24526
["stabilizer", "canon", "md_cano500"] 2.191 ms (5%)
["stabilizer", "canon", "md_rref500"] 2.182 ms (5%)
["stabilizer", "canon", "rref500"] 4.841 ms (5%)
["stabilizer", "project", "destabilizer"] 27.002 μs (5%) 288 bytes (1%) 3
["stabilizer", "project", "stabilizer"] 12.600 μs (5%) 80 bytes (1%) 2
["stabilizer", "tensor", "diag_pow5_20"] 4.550 ms (5%) 23.97 MiB (1%) 31
["stabilizer", "tensor", "pow5_20"] 4.243 μs (5%) 6.48 KiB (1%) 28
["stabilizer", "trace", "destabilizer"] 47.901 μs (5%) 80 bytes (1%) 1
["stabilizer", "trace", "stabilizer"] 46.801 μs (5%) 112 bytes (1%) 2

Benchmark Group List

Here's a list of all the benchmark groups executed by this job:

  • ["circuitsim", "mctrajectories"]
  • ["circuitsim", "mctrajectories_sumtype"]
  • ["circuitsim", "mctrajectories_union"]
  • ["circuitsim", "pftrajectories"]
  • ["circuitsim", "pftrajectories_sumtype"]
  • ["circuitsim", "pftrajectories_union"]
  • ["clifford", "dense"]
  • ["clifford", "symbolic"]
  • ["pauli", "mul"]
  • ["stabilizer", "canon"]
  • ["stabilizer", "project"]
  • ["stabilizer", "tensor"]
  • ["stabilizer", "trace"]

Julia versioninfo

Julia Version 1.11.0-DEV.443
Commit 7b9fdf852c1 (2023-09-10 01:51 UTC)
Build Info:
 Official https://julialang.org/ release
Platform Info:
 OS: Linux (x86_64-linux-gnu)
 Ubuntu 22.04.3 LTS
 uname: Linux 5.15.0-1041-azure #48-Ubuntu SMP Tue Jun 20 20:34:08 UTC 2023 x86_64 x86_64
 CPU: Intel(R) Xeon(R) Platinum 8272CL CPU @ 2.60GHz: 
 speed user nice sys idle irq
 #1 2593 MHz 7324 s 1 s 349 s 16075 s 0 s
 #2 2593 MHz 1015 s 2 s 298 s 22362 s 0 s
 Memory: 6.7694854736328125 GB (4698.08203125 MB free)
 Uptime: 2383.46 sec
 Load Avg: 1.0 1.0 0.68
 WORD_SIZE: 64
 LLVM: libLLVM-15.0.7 (ORCJIT, skylake-avx512)
 Threads: 1 on 2 virtual cores

Baseline result

Benchmark Report for /home/runner/work/QuantumClifford.jl/QuantumClifford.jl

Job Properties

  • Time of benchmark: 10 Sep 2023 - 20:20
  • Package commit: cbd5aa
  • Julia commit: 7b9fdf
  • Julia command flags: None
  • Environment variables: None

Results

Below is a table of this job's results, obtained by running the benchmarks.
The values listed in the ID column have the structure [parent_group, child_group, ..., key], and can be used to
index into the BaseBenchmarks suite to retrieve the corresponding benchmarks.
The percentages accompanying time and memory values in the below table are noise tolerances. The "true"
time/memory value for a given benchmark is expected to fall within this percentage of the reported value.
An empty cell means that the value was zero.

ID time GC time memory allocations
["circuitsim", "mctrajectories", "q1001_r1"] 23.754 ms (5%) 500.78 KiB (1%) 18017
["circuitsim", "mctrajectories", "q101_r1"] 279.706 μs (5%) 50.53 KiB (1%) 1816
["circuitsim", "mctrajectories_sumtype", "q1001_r1"] 22.881 ms (5%) 544 bytes (1%) 8
["circuitsim", "mctrajectories_sumtype", "q101_r1"] 199.605 μs (5%) 288 bytes (1%) 7
["circuitsim", "mctrajectories_union", "q1001_r1"] 22.858 ms (5%) 544 bytes (1%) 8
["circuitsim", "mctrajectories_union", "q101_r1"] 198.804 μs (5%) 288 bytes (1%) 7
["circuitsim", "pftrajectories", "q1001_r1"] 79.401 μs (5%) 93.80 KiB (1%) 2001
["circuitsim", "pftrajectories", "q1001_r100"] 251.805 μs (5%) 93.80 KiB (1%) 2001
["circuitsim", "pftrajectories", "q1001_r10000"] 1.644 ms (5%) 93.80 KiB (1%) 2001
["circuitsim", "pftrajectories", "q101_r1"] 8.000 μs (5%) 9.42 KiB (1%) 201
["circuitsim", "pftrajectories_sumtype", "q1001_r1"] 48.702 μs (5%) 48 bytes (1%) 1
["circuitsim", "pftrajectories_sumtype", "q1001_r100"] 219.104 μs (5%) 48 bytes (1%) 1
["circuitsim", "pftrajectories_sumtype", "q1001_r10000"] 1.608 ms (5%) 48 bytes (1%) 1
["circuitsim", "pftrajectories_sumtype", "q1001_r10000_fastrow"] 9.015 ms (5%) 48 bytes (1%) 1
["circuitsim", "pftrajectories_sumtype", "q101_r1"] 4.943 μs (5%) 48 bytes (1%) 1
["circuitsim", "pftrajectories_union", "q1001_r1"] 28.300 μs (5%) 96 bytes (1%) 2
["circuitsim", "pftrajectories_union", "q1001_r100"] 199.504 μs (5%) 96 bytes (1%) 2
["circuitsim", "pftrajectories_union", "q1001_r10000"] 1.576 ms (5%) 96 bytes (1%) 2
["circuitsim", "pftrajectories_union", "q101_r1"] 2.889 μs (5%) 96 bytes (1%) 2
["clifford", "dense", "cnot250_on_dense500_destab"] 19.275 ms (5%) 512 bytes (1%) 4
["clifford", "dense", "cnot250_on_dense500_stab"] 9.492 ms (5%) 512 bytes (1%) 4
["clifford", "dense", "cnot250_on_diag500_destab"] 1.758 ms (5%) 512 bytes (1%) 4
["clifford", "dense", "cnot250_on_diag500_stab"] 619.318 μs (5%) 512 bytes (1%) 4
["clifford", "dense", "cnot_on_dense500_destab"] 69.502 μs (5%) 368 bytes (1%) 5
["clifford", "dense", "cnot_on_dense500_stab"] 32.200 μs (5%) 368 bytes (1%) 5
["clifford", "dense", "cnot_on_diag500_destab"] 34.800 μs (5%) 368 bytes (1%) 5
["clifford", "dense", "cnot_on_diag500_stab"] 16.800 μs (5%) 368 bytes (1%) 5
["clifford", "dense", "dense500_on_dense500_destab"] 19.255 ms (5%) 512 bytes (1%) 4
["clifford", "dense", "dense500_on_dense500_stab"] 10.015 ms (5%) 512 bytes (1%) 4
["clifford", "dense", "dense500_on_diag500_destab"] 1.248 ms (5%) 512 bytes (1%) 4
["clifford", "dense", "dense500_on_diag500_stab"] 619.414 μs (5%) 512 bytes (1%) 4
["clifford", "symbolic", "cnot250_on_dense500_destab"] 2.510 ms (5%)
["clifford", "symbolic", "cnot250_on_dense500_stab"] 1.006 ms (5%)
["clifford", "symbolic", "cnot250_on_diag500_destab"] 2.014 ms (5%)
["clifford", "symbolic", "cnot250_on_diag500_stab"] 827.920 μs (5%)
["clifford", "symbolic", "cnot_on_dense500_destab"] 9.200 μs (5%)
["clifford", "symbolic", "cnot_on_dense500_stab"] 3.337 μs (5%)
["clifford", "symbolic", "cnot_on_diag500_destab"] 8.080 μs (5%)
["clifford", "symbolic", "cnot_on_diag500_stab"] 3.312 μs (5%)
["pauli", "mul", "100"] 16.717 ns (5%)
["pauli", "mul", "1000"] 27.236 ns (5%)
["pauli", "mul", "100000"] 748.690 ns (5%)
["pauli", "mul", "20000000"] 418.910 μs (5%)
["stabilizer", "canon", "cano500"] 4.613 ms (5%)
["stabilizer", "canon", "diag_cano500"] 946.030 μs (5%)
["stabilizer", "canon", "diag_gott500"] 12.328 ms (5%) 5.26 MiB (1%) 24516
["stabilizer", "canon", "diag_rref500"] 767.524 μs (5%)
["stabilizer", "canon", "gott500"] 16.097 ms (5%) 5.27 MiB (1%) 24526
["stabilizer", "canon", "md_cano500"] 2.264 ms (5%)
["stabilizer", "canon", "md_rref500"] 2.233 ms (5%)
["stabilizer", "canon", "rref500"] 4.789 ms (5%)
["stabilizer", "project", "destabilizer"] 27.201 μs (5%) 288 bytes (1%) 3
["stabilizer", "project", "stabilizer"] 12.600 μs (5%) 80 bytes (1%) 2
["stabilizer", "tensor", "diag_pow5_20"] 4.214 ms (5%) 23.97 MiB (1%) 31
["stabilizer", "tensor", "pow5_20"] 4.286 μs (5%) 6.48 KiB (1%) 28
["stabilizer", "trace", "destabilizer"] 48.601 μs (5%) 80 bytes (1%) 1
["stabilizer", "trace", "stabilizer"] 45.201 μs (5%) 112 bytes (1%) 2

Benchmark Group List

Here's a list of all the benchmark groups executed by this job:

  • ["circuitsim", "mctrajectories"]
  • ["circuitsim", "mctrajectories_sumtype"]
  • ["circuitsim", "mctrajectories_union"]
  • ["circuitsim", "pftrajectories"]
  • ["circuitsim", "pftrajectories_sumtype"]
  • ["circuitsim", "pftrajectories_union"]
  • ["clifford", "dense"]
  • ["clifford", "symbolic"]
  • ["pauli", "mul"]
  • ["stabilizer", "canon"]
  • ["stabilizer", "project"]
  • ["stabilizer", "tensor"]
  • ["stabilizer", "trace"]

Julia versioninfo

Julia Version 1.11.0-DEV.443
Commit 7b9fdf852c1 (2023-09-10 01:51 UTC)
Build Info:
 Official https://julialang.org/ release
Platform Info:
 OS: Linux (x86_64-linux-gnu)
 Ubuntu 22.04.3 LTS
 uname: Linux 5.15.0-1041-azure #48-Ubuntu SMP Tue Jun 20 20:34:08 UTC 2023 x86_64 x86_64
 CPU: Intel(R) Xeon(R) Platinum 8272CL CPU @ 2.60GHz: 
 speed user nice sys idle irq
 #1 2593 MHz 7404 s 1 s 409 s 19185 s 0 s
 #2 2593 MHz 4102 s 2 s 404 s 22432 s 0 s
 Memory: 6.7694854736328125 GB (4668.4609375 MB free)
 Uptime: 2709.73 sec
 Load Avg: 1.05 1.03 0.81
 WORD_SIZE: 64
 LLVM: libLLVM-15.0.7 (ORCJIT, skylake-avx512)
 Threads: 1 on 2 virtual cores

Runtime information

Runtime Info
BLAS #threads 1
BLAS.vendor() lbt
Sys.CPU_THREADS 2

lscpu output:

Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Address sizes: 46 bits physical, 48 bits virtual
Byte Order: Little Endian
CPU(s): 2
On-line CPU(s) list: 0,1
Vendor ID: GenuineIntel
Model name: Intel(R) Xeon(R) Platinum 8272CL CPU @ 2.60GHz
CPU family: 6
Model: 85
Thread(s) per core: 1
Core(s) per socket: 2
Socket(s): 1
Stepping: 7
BogoMIPS: 5187.81
Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc rep_good nopl xtopology cpuid pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 movbe popcnt aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch invpcid_single pti fsgsbase bmi1 hle avx2 smep bmi2 erms invpcid rtm avx512f avx512dq rdseed adx smap clflushopt avx512cd avx512bw avx512vl xsaveopt xsavec xsaves md_clear
Hypervisor vendor: Microsoft
Virtualization type: full
L1d cache: 64 KiB (2 instances)
L1i cache: 64 KiB (2 instances)
L2 cache: 2 MiB (2 instances)
L3 cache: 35.8 MiB (1 instance)
NUMA node(s): 1
NUMA node0 CPU(s): 0,1
Vulnerability Itlb multihit: KVM: Mitigation: VMX unsupported
Vulnerability L1tf: Mitigation; PTE Inversion
Vulnerability Mds: Mitigation; Clear CPU buffers; SMT Host state unknown
Vulnerability Meltdown: Mitigation; PTI
Vulnerability Mmio stale data: Vulnerable: Clear CPU buffers attempted, no microcode; SMT Host state unknown
Vulnerability Retbleed: Vulnerable
Vulnerability Spec store bypass: Vulnerable
Vulnerability Spectre v1: Mitigation; usercopy/swapgs barriers and __user pointer sanitization
Vulnerability Spectre v2: Mitigation; Retpolines, STIBP disabled, RSB filling, PBRSB-eIBRS Not affected
Vulnerability Srbds: Not affected
Vulnerability Tsx async abort: Mitigation; Clear CPU buffers; SMT Host state unknown

Cpu Property Value
Brand Intel(R) Xeon(R) Platinum 8272CL CPU @ 2.60GHz
Vendor :Intel
Architecture :Skylake
Model Family: 0x06, Model: 0x55, Stepping: 0x07, Type: 0x00
Cores 2 physical cores, 2 logical cores (on executing CPU)
No Hyperthreading hardware capability detected
Clock Frequencies Not supported by CPU
Data Cache Level 1:3 : (32, 1024, 36608) kbytes
64 byte cache line size
Address Size 48 bits virtual, 46 bits physical
SIMD 512 bit = 64 byte max. SIMD vector size
Time Stamp Counter TSC is accessible via rdtsc
TSC increased at every clock cycle (non-invariant TSC)
Perf. Monitoring Performance Monitoring Counters (PMC) are not supported
Hypervisor Yes, Microsoft

@Krastanov
Copy link
Member

finished in #154

@Krastanov Krastanov closed this Sep 18, 2023
@amicciche amicciche deleted the naive_encoding_circuit branch September 2, 2024 20:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants