diff --git a/src/schema.jl b/src/schema.jl index 28c0dd4..44c8082 100644 --- a/src/schema.jl +++ b/src/schema.jl @@ -24,24 +24,24 @@ end id::String username::String email::String - urls::Dict{String, Any} - userType::String="Standard" + urls::Dict{String,Any} + userType::String = "Standard" firstName::Maybe{String} = nothing lastName::Maybe{String} = nothing institution::Maybe{String} = nothing applications::Vector{String} = String[] subscriptions::Subscription = Subscription() - readOnly::Bool=false - needsRefill::Bool=false - iqxPreferences::Dict{String, Any} = Dict{String, Any}() + readOnly::Bool = false + needsRefill::Bool = false + iqxPreferences::Dict{String,Any} = Dict{String,Any}() loginAccounts::Vector{Any} = [] - ibmQNetwork::Bool=true + ibmQNetwork::Bool = true qNetworkRoles::Vector{String} = [] roles::Vector{Any} = [] - emailVerified::Bool=false - terms::Dict{String, Any} = Dict{String, Any}() - canScheduleBackends::Bool=true - servicesRoles::Vector{String}=[] + emailVerified::Bool = false + terms::Dict{String,Any} = Dict{String,Any}() + canScheduleBackends::Bool = true + servicesRoles::Vector{String} = [] end UserInfo(d::AbstractDict{String}) = from_dict(UserInfo, d) @@ -139,7 +139,7 @@ the property is false and new tags can be added. configurable::Bool = false credits_required::Bool = false allow_q_object::Bool = false - allow_object_storage::Bool=false + allow_object_storage::Bool = false n_registers::Maybe{Int} = nothing open_pulse::Bool = false quantum_volume::Maybe{Int} = nothing @@ -292,11 +292,11 @@ The types of snapshots offered are defined in a separate specification document for simulators. """ @option struct ExpData <: IBMQSchema - counts::Dict{String, Int} + counts::Dict{String,Int} memory::Maybe{Vector{String}} = nothing statevector::Maybe{Matrix{ComplexF64}} = nothing unitary::Maybe{Matrix{ComplexF64}} = nothing - snapshots::Maybe{Dict{String, Any}} = nothing + snapshots::Maybe{Dict{String,Any}} = nothing end """ @@ -322,11 +322,13 @@ the type of experiment (`"QASM"` or `"PULSE"`) and/or the type of backend (e.g. simulator data). See below. """ @option struct ExpResult <: IBMQSchema - metadata::Maybe{Dict{String, Any}} = nothing - header::Maybe{Dict{String, Any}} = nothing - shots::Union{Int, Vector{Int}} + metadata::Maybe{Dict{String,Any}} = nothing + header::Maybe{Dict{String,Any}} = nothing + shots::Union{Int,Vector{Int}} status::String success::Bool + meas_level::Int + circ_id::Int time_taken::Float64 seed_simulator::Maybe{Int} = nothing seed::Maybe{Int} = nothing @@ -347,8 +349,8 @@ The results data structure from Job.result(). - `results`: List of `m` (number of experiments) exp result data structures (defined below). """ @option struct Result <: IBMQSchema - header::Maybe{Dict{String, Any}} = nothing - metadata::Maybe{Dict{String, Any}} = nothing + header::Maybe{Dict{String,Any}} = nothing + metadata::Maybe{Dict{String,Any}} = nothing time_taken::Maybe{Float64} = nothing qobj_id::String job_id::String @@ -395,7 +397,7 @@ Abstract type for Qobj schema instructions. """ abstract type Instruction <: IBMQSchema end -Configurations.is_option(::Type{T}) where {T <: Instruction} = true +Configurations.is_option(::Type{T}) where {T<:Instruction} = true """ struct BooleanFunction <: Instruction @@ -517,7 +519,7 @@ experiment. These will override the configuration settings of the whole job. See - `instructions`: List of sequence commands that define the experiment. See [`Instruction`](@ref). """ @option struct Experiment <: IBMQSchema - header::Maybe{Dict{String, Any}} = nothing + header::Maybe{Dict{String,Any}} = nothing # NOTE: the schema specification didn't mention # but this can be optional config::Maybe{ExpConfig} = nothing @@ -548,10 +550,10 @@ the backend that the experiments were compiled for. type::String = "QASM" schema_version::VersionNumber = v"1.3" experiments::Vector{Experiment} = Experiment[] - header::Maybe{Dict{String, Any}} = nothing + header::Maybe{Dict{String,Any}} = nothing config::ExpConfig end -Configurations.to_dict(::Type{T}, x::VersionNumber) where {T <: IBMQSchema} = string(x) +Configurations.to_dict(::Type{T}, x::VersionNumber) where {T<:IBMQSchema} = string(x) end diff --git a/test/adapters.jl b/test/adapters.jl index 71067a6..11b330e 100644 --- a/test/adapters.jl +++ b/test/adapters.jl @@ -6,6 +6,7 @@ using IBMQClient.Schema using BrokenRecord token = "pg3PIrchJpDoyv7cl5GedjE4Q86NuKyriLIIN3SskWMlNDIgnAHALINT8jWgyIdNiEWURUnp2qjr0T4ooP5T60DxejmhbeVFbt1fTeIUlNQPSIbc637GShmhc4xqD65b" + @test IBMQClient.read_token(joinpath(pkgdir(IBMQClient), "test", ".qiskit", "qiskitrc")) == token BrokenRecord.configure!(path=joinpath(pkgdir(IBMQClient), "test", "records"), ignore_query=["apiToken"], ignore_headers=["X-Access-Token", "apiToken"]) @@ -51,7 +52,7 @@ end @test devices[1].backend_name == "ibmq_qasm_simulator" -jobs = playback("jobs.json") do +jobs = playback("jobs.json") do IBMQClient.jobs(account) end @@ -62,11 +63,11 @@ qobj = Qobj(; qobj_id="bell_Qobj_07272018", type="QASM", schema_version=v"1", - header=Dict("description"=>"Bell states"), + header=Dict("description" => "Bell states"), config=ExpConfig(shots=1000, memory_slots=2), experiments=[ Experiment(; - header=Dict("description"=>"|11>+|00> Bell"), + header=Dict("description" => "|11>+|00> Bell"), instructions=[ Gate(name="u2", qubits=[0], params=[0.0, π]), Gate(name="cx", qubits=[0, 1]), @@ -74,7 +75,7 @@ qobj = Qobj(; ] ), Experiment(; - header=Dict("description"=>"|01>+|10> Bell"), + header=Dict("description" => "|01>+|10> Bell"), instructions=[ Gate(name="u2", qubits=[0], params=[0.0, π]), Gate(name="cx", qubits=[0, 1]), @@ -85,6 +86,7 @@ qobj = Qobj(; ] ) + job_info = playback("submit.json") do IBMQClient.submit(account, RemoteJob(dev=devices[1]), qobj) end @@ -101,63 +103,5 @@ results = playback("result.json") do IBMQClient.results(account, job_info) end -@test results.backend_name == "ibmq_qasm_simulator" +@test results.backend_name == "qasm_simulator" @test results.status == "COMPLETED" - -using REPL.TerminalMenus -const CR = "\r" -const LF = "\n" -const UP = "\eOA" -const DOWN = "\eOB" -const ALL = "a" -const NONE = "n" -const DONE = "d" -const SIGINT = "\x03" -const QUIT = "q" - -menu = IBMQClient.DeviceMenu(devices) -print( - stdin.buffer, - DOWN, - LF, - CR, -) - -choice = request("choose a device:", menu) -@test choice == 2 -readavailable(stdin.buffer) - -print( - stdin.buffer, - DOWN, - DOWN, - DOWN, - LF, - CR, -) -choice = request("choose a device:", menu) -@test choice == 4 -readavailable(stdin.buffer) - -print( - stdin.buffer, - DOWN, - DOWN, - DOWN, - QUIT, -) -choice = request("choose a device:", menu) -@test choice == -1 -readavailable(stdin.buffer) - -@test_throws InterruptException begin - print( - stdin.buffer, - DOWN, - DOWN, - DOWN, - SIGINT, - ) - request("choose a device:", menu) - readavailable(stdin.buffer) -end diff --git a/test/menu.jl b/test/menu.jl new file mode 100644 index 0000000..0dabc57 --- /dev/null +++ b/test/menu.jl @@ -0,0 +1,57 @@ +using REPL.TerminalMenus +const CR = "\r" +const LF = "\n" +const UP = "\eOA" +const DOWN = "\eOB" +const ALL = "a" +const NONE = "n" +const DONE = "d" +const SIGINT = "\x03" +const QUIT = "q" + +menu = IBMQClient.DeviceMenu(devices) +print( + stdin.buffer, + DOWN, + LF, + CR, +) + +choice = request("choose a device:", menu) +@test choice == 2 +readavailable(stdin.buffer) + +print( + stdin.buffer, + DOWN, + DOWN, + DOWN, + LF, + CR, +) +choice = request("choose a device:", menu) +@test choice == 4 +readavailable(stdin.buffer) + +print( + stdin.buffer, + DOWN, + DOWN, + DOWN, + QUIT, +) +choice = request("choose a device:", menu) +@test choice == -1 +readavailable(stdin.buffer) + +@test_throws InterruptException begin + print( + stdin.buffer, + DOWN, + DOWN, + DOWN, + SIGINT, + ) + request("choose a device:", menu) + readavailable(stdin.buffer) +end diff --git a/test/records/result.json b/test/records/result.json index cb0369d..a6c8442 100644 --- a/test/records/result.json +++ b/test/records/result.json @@ -3,88 +3,97 @@ { "headers": [ { - "Date": "Tue, 04 May 2021 11:45:45 GMT" + "Date": "Thu, 22 Feb 2024 16:30:01 GMT" }, { "Content-Type": "application/json; charset=utf-8" }, { - "Content-Length": "384" + "Content-Length": "439" }, { "Connection": "keep-alive" }, { - "Set-Cookie": "__cfduid=d29e5f2ecfad642842ac3365e754573801620128745; expires=Thu, 03-Jun-21 11:45:45 GMT; path=/; domain=.quantum-computing.ibm.com; HttpOnly; SameSite=Lax" + "x-xss-protection": "0" }, { - "Vary": "Origin, Accept-Encoding" + "x-frame-options": "SAMEORIGIN" }, { - "Access-Control-Allow-Credentials": "true" + "strict-transport-security": "max-age=15552000; includeSubDomains" }, { - "Access-Control-Expose-Headers": "x-total-count" + "x-download-options": "noopen" }, { - "X-XSS-Protection": "1; mode=block" + "x-content-type-options": "nosniff" }, { - "X-Frame-Options": "SAMEORIGIN" + "surrogate-control": "no-store" }, { - "Strict-Transport-Security": "max-age=15724800; includeSubDomains" + "cache-control": "no-store, no-cache, must-revalidate, proxy-revalidate" }, { - "X-Download-Options": "noopen" + "pragma": "no-cache" }, { - "X-Content-Type-Options": "nosniff" + "expires": "0" }, { - "Surrogate-Control": "no-store" + "vary": "Origin, Accept-Encoding" }, { - "Cache-Control": "no-store, no-cache, must-revalidate, proxy-revalidate" + "access-control-allow-credentials": "true" }, { - "Pragma": "no-cache" + "access-control-expose-headers": "x-total-count" }, { - "Expires": "0" + "uber-trace-id": "f5f8b41bdf030a90:f5f8b41bdf030a90:0:1" }, { - "uber-trace-id": "7a3135fa9f0e4f47:7a3135fa9f0e4f47:0:1" + "content-security-policy": "font-src 'self' https: data: https://1.www.s81c.com;frame-src 'self' https://prepiam.ice.ibmcloud.com https://login.ibm.com;script-src 'self' 'nonce-55588038-4364-42fe-b170-520e33e6ed33';default-src 'self';base-uri 'self';block-all-mixed-content;frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src-attr 'none';style-src 'self' https: 'unsafe-inline'" }, { - "X-RateLimit-Limit": "50" + "x-dns-prefetch-control": "off" }, { - "X-RateLimit-Remaining": "49" + "expect-ct": "max-age=0" }, { - "X-RateLimit-Reset": "1620128747" + "x-permitted-cross-domain-policies": "none" }, { - "ETag": "W/\"180-tFv9ruisBP2mfKOBdoL2zItcTYE\"" + "referrer-policy": "no-referrer" }, { - "CF-Cache-Status": "DYNAMIC" + "x-ratelimit-limit": "50" + }, + { + "x-ratelimit-remaining": "49" + }, + { + "x-ratelimit-reset": "1708619402" }, { - "cf-request-id": "09d8cbe0d60000597aa2ba9000000001" + "etag": "W/\"1b7-SFRbMsssMLwJxNQnITO/4/qOCTM\"" }, { - "Expect-CT": "max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\"" + "x-envoy-upstream-service-time": "353" + }, + { + "CF-Cache-Status": "DYNAMIC" }, { "Server": "cloudflare" }, { - "CF-RAY": "64a17c148e5c597a-IAD" + "CF-RAY": "85989c78bd747166-DUS" } ], - "body": "{\"kind\":\"q-object-external-storage\",\"backend\":{\"id\":\"5ae875670f020500393162ad\",\"name\":\"ibmq_qasm_simulator\"},\"status\":\"COMPLETED\",\"creationDate\":\"2021-05-04T11:34:58.965Z\",\"hubInfo\":{\"hub\":{\"name\":\"ibm-q\"},\"group\":{\"name\":\"open\"},\"project\":{\"name\":\"main\"}},\"endDate\":\"2021-05-04T11:35:03.089Z\",\"runMode\":\"fairshare\",\"id\":\"609131631355905234476870\",\"userId\":\"5ddc5f2f6b72bd00113d2722\"}", + "body": "{\"id\":\"cnbnd1mj1613i2jfch3g\",\"userId\":\"645a24864b144c39fd11720a\",\"kind\":\"runtime\",\"backend\":{\"name\":\"ibmq_qasm_simulator\"},\"status\":\"COMPLETED\",\"creationDate\":\"2024-02-22T16:29:58.805Z\",\"hubInfo\":{\"hub\":{\"name\":\"ibm-q\"},\"group\":{\"name\":\"open\"},\"project\":{\"name\":\"main\"}},\"tags\":[],\"name\":\"circuit-runner\",\"liveDataEnabled\":false,\"endDate\":\"2024-02-22T16:29:59.015Z\",\"createdBy\":\"local\",\"clientInfo\":{\"name\":\"IBMQClient.jl\",\"version\":null}}", "status": 200, "request": { "txcount": 1, @@ -102,7 +111,7 @@ "Host": "api-qcon.quantum-computing.ibm.com" }, { - "User-Agent": "HTTP.jl/1.6.1" + "User-Agent": "HTTP.jl/1.9.4" }, { "Content-Length": "0" @@ -110,7 +119,7 @@ ], "body": "", "method": "GET", - "target": "/api/Network/ibm-q/Groups/open/Projects/main/Jobs/609131631355905234476870/status/v/1", + "target": "/api/Network/ibm-q/Groups/open/Projects/main/Jobs/cnbnd1mj1613i2jfch3g/status/v/1", "version": "1.1.0" }, "version": "1.1.0" @@ -118,88 +127,97 @@ { "headers": [ { - "Date": "Tue, 04 May 2021 11:45:46 GMT" + "Date": "Thu, 22 Feb 2024 16:30:01 GMT" }, { "Content-Type": "application/json; charset=utf-8" }, { - "Content-Length": "422" + "Content-Length": "126" }, { "Connection": "keep-alive" }, { - "Set-Cookie": "__cfduid=d29e5f2ecfad642842ac3365e754573801620128745; expires=Thu, 03-Jun-21 11:45:45 GMT; path=/; domain=.quantum-computing.ibm.com; HttpOnly; SameSite=Lax" + "x-xss-protection": "0" }, { - "Vary": "Origin, Accept-Encoding" + "x-frame-options": "SAMEORIGIN" }, { - "Access-Control-Allow-Credentials": "true" + "strict-transport-security": "max-age=15552000; includeSubDomains" }, { - "Access-Control-Expose-Headers": "x-total-count" + "x-download-options": "noopen" }, { - "X-XSS-Protection": "1; mode=block" + "x-content-type-options": "nosniff" }, { - "X-Frame-Options": "SAMEORIGIN" + "surrogate-control": "no-store" }, { - "Strict-Transport-Security": "max-age=15724800; includeSubDomains" + "cache-control": "no-store, no-cache, must-revalidate, proxy-revalidate" }, { - "X-Download-Options": "noopen" + "pragma": "no-cache" }, { - "X-Content-Type-Options": "nosniff" + "expires": "0" }, { - "Surrogate-Control": "no-store" + "vary": "Origin, Accept-Encoding" }, { - "Cache-Control": "no-store, no-cache, must-revalidate, proxy-revalidate" + "access-control-allow-credentials": "true" }, { - "Pragma": "no-cache" + "access-control-expose-headers": "x-total-count" }, { - "Expires": "0" + "uber-trace-id": "82e794711a1b292e:82e794711a1b292e:0:1" }, { - "uber-trace-id": "200d2b1e88d77dd0:200d2b1e88d77dd0:0:1" + "content-security-policy": "font-src 'self' https: data: https://1.www.s81c.com;frame-src 'self' https://prepiam.ice.ibmcloud.com https://login.ibm.com;script-src 'self' 'nonce-81cea5d9-ec88-4d23-b476-8d1ce49f3ed4';default-src 'self';base-uri 'self';block-all-mixed-content;frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src-attr 'none';style-src 'self' https: 'unsafe-inline'" }, { - "X-RateLimit-Limit": "50" + "x-dns-prefetch-control": "off" }, { - "X-RateLimit-Remaining": "49" + "expect-ct": "max-age=0" }, { - "X-RateLimit-Reset": "1620128747" + "x-permitted-cross-domain-policies": "none" }, { - "ETag": "W/\"1a6-0o8MC8qN48rwmQkX3RxM14kfcG0\"" + "referrer-policy": "no-referrer" }, { - "CF-Cache-Status": "DYNAMIC" + "x-ratelimit-limit": "50" }, { - "cf-request-id": "09d8cbe1b60000597a849ce000000001" + "x-ratelimit-remaining": "49" }, { - "Expect-CT": "max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\"" + "x-ratelimit-reset": "1708619403" + }, + { + "etag": "W/\"7e-DrzoyPz7xRt24/D1uyzpKtr9EOE\"" + }, + { + "x-envoy-upstream-service-time": "86" + }, + { + "CF-Cache-Status": "DYNAMIC" }, { "Server": "cloudflare" }, { - "CF-RAY": "64a17c15f955597a-IAD" + "CF-RAY": "85989c7be9e37166-DUS" } ], - "body": "{\"url\":\"https://s3.us-east.cloud-object-storage.appdomain.cloud/us-east-quantum-computing-user-jobs-prod/result-609131631355905234476870.json?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=21ce861c64cc417e9a95f95263ecf8f7%2F20210504%2Fus-east%2Fs3%2Faws4_request&X-Amz-Date=20210504T114546Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=6bc8a14333784f70a5a633393b85063b80a64906f1fed1cd1832c9102e683f85\"}", + "body": "{\"url\":\"https://api-qcon.quantum.ibm.com/api/Network/ibm-q/groups/open/projects/main/jobs/runtimeResult/cnbnd1mj1613i2jfch3g\"}", "status": 200, "request": { "txcount": 1, @@ -217,7 +235,7 @@ "Host": "api-qcon.quantum-computing.ibm.com" }, { - "User-Agent": "HTTP.jl/1.6.1" + "User-Agent": "HTTP.jl/1.9.4" }, { "Content-Length": "0" @@ -225,7 +243,7 @@ ], "body": "", "method": "GET", - "target": "/api/Network/ibm-q/Groups/open/Projects/main/Jobs/609131631355905234476870/resultDownloadUrl", + "target": "/api/Network/ibm-q/Groups/open/Projects/main/Jobs/cnbnd1mj1613i2jfch3g/resultDownloadUrl", "version": "1.1.0" }, "version": "1.1.0" @@ -233,37 +251,97 @@ { "headers": [ { - "Date": "Tue, 04 May 2021 11:45:46 GMT" + "Date": "Thu, 22 Feb 2024 16:30:05 GMT" + }, + { + "Content-Type": "application/json; charset=utf-8" + }, + { + "Transfer-Encoding": "chunked" + }, + { + "Connection": "keep-alive" + }, + { + "x-xss-protection": "0" + }, + { + "x-frame-options": "SAMEORIGIN" + }, + { + "strict-transport-security": "max-age=15552000; includeSubDomains" + }, + { + "x-download-options": "noopen" + }, + { + "x-content-type-options": "nosniff" }, { - "X-Clv-Request-Id": "230bfcab-7137-47b7-8829-49ee250bc27d" + "surrogate-control": "no-store" }, { - "Server": "Cleversafe" + "cache-control": "no-store, no-cache, must-revalidate, proxy-revalidate" }, { - "X-Clv-S3-Version": "2.5" + "pragma": "no-cache" }, { - "Accept-Ranges": "bytes" + "expires": "0" }, { - "x-amz-request-id": "230bfcab-7137-47b7-8829-49ee250bc27d" + "vary": "Origin, Accept-Encoding" }, { - "ETag": "\"f4e4b3e2e256c7f255d714f1cd666892\"" + "access-control-allow-credentials": "true" }, { - "Content-Type": "application/json" + "access-control-expose-headers": "x-total-count" }, { - "Last-Modified": "Tue, 04 May 2021 11:35:02 GMT" + "uber-trace-id": "210b90398e047bf7:210b90398e047bf7:0:1" }, { - "Content-Length": "1299" + "content-security-policy": "font-src 'self' https: data: https://1.www.s81c.com;frame-src 'self' https://prepiam.ice.ibmcloud.com https://login.ibm.com;script-src 'self' 'nonce-a024c8fe-fcfc-455f-9790-948296e05288';default-src 'self';base-uri 'self';block-all-mixed-content;frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src-attr 'none';style-src 'self' https: 'unsafe-inline'" + }, + { + "x-dns-prefetch-control": "off" + }, + { + "expect-ct": "max-age=0" + }, + { + "x-permitted-cross-domain-policies": "none" + }, + { + "referrer-policy": "no-referrer" + }, + { + "x-ratelimit-limit": "50" + }, + { + "x-ratelimit-remaining": "49" + }, + { + "x-ratelimit-reset": "1708619404" + }, + { + "etag": "W/\"77b-pkQ5vvWZoCNLl2aGvfm5wCo+o68\"" + }, + { + "x-envoy-upstream-service-time": "2438" + }, + { + "CF-Cache-Status": "DYNAMIC" + }, + { + "Server": "cloudflare" + }, + { + "CF-RAY": "85989c7fe9aa7163-DUS" } ], - "body": "{\"backend_name\": \"ibmq_qasm_simulator\", \"backend_version\": \"0.8.1\", \"date\": \"2021-05-04T11:35:02.660124\", \"header\": {\"description\": \"Bell states\"}, \"job_id\": \"609131631355905234476870\", \"metadata\": {\"max_gpu_memory_mb\": 0, \"max_memory_mb\": 515872, \"mpi_rank\": 0, \"num_mpi_processes\": 1, \"omp_enabled\": true, \"parallel_experiments\": 1, \"time_taken\": 0.002888077}, \"qobj_id\": \"bell_Qobj_07272018\", \"results\": [{\"data\": {\"counts\": {\"0x0\": 506, \"0x3\": 494}}, \"header\": {\"description\": \"|11>+|00> Bell\"}, \"metadata\": {\"fusion\": {\"applied\": false, \"enabled\": true, \"max_fused_qubits\": 5, \"threshold\": 14}, \"measure_sampling\": true, \"method\": \"statevector\", \"parallel_shots\": 1, \"parallel_state_update\": 16}, \"seed_simulator\": 3112526332, \"shots\": 1000, \"status\": \"DONE\", \"success\": true, \"time_taken\": 0.0014604820000000001}, {\"data\": {\"counts\": {\"0x1\": 524, \"0x2\": 476}}, \"header\": {\"description\": \"|01>+|10> Bell\"}, \"metadata\": {\"fusion\": {\"applied\": false, \"enabled\": true, \"max_fused_qubits\": 5, \"threshold\": 14}, \"measure_sampling\": true, \"method\": \"statevector\", \"parallel_shots\": 1, \"parallel_state_update\": 16}, \"seed_simulator\": 3043966511, \"shots\": 1000, \"status\": \"DONE\", \"success\": true, \"time_taken\": 0.0012943890000000002}], \"status\": \"COMPLETED\", \"success\": true, \"time_taken\": 0.002888077}", + "body": "{\"backend_name\":\"qasm_simulator\",\"backend_version\":\"0.13.3\",\"header\":{\"description\":\"Bell states\"},\"qobj_id\":\"bell_Qobj_07272018\",\"job_id\":\"Unknown\",\"status\":\"COMPLETED\",\"success\":true,\"results\":[{\"shots\":1000,\"success\":true,\"data\":{\"counts\":{\"0x0\":479,\"0x3\":521}},\"meas_level\":2,\"header\":{\"description\":\"|11>+|00> Bell\"},\"status\":\"DONE\",\"circ_id\":0,\"seed_simulator\":1561849257,\"metadata\":{\"time_taken\":0.005054817,\"active_input_qubits\":[0,1],\"method\":\"statevector\",\"remapped_qubits\":false,\"num_clbits\":2,\"input_qubit_map\":[[1,1],[0,0]],\"device\":\"CPU\",\"parallel_shots\":1,\"num_qubits\":2,\"measure_sampling\":true,\"num_bind_params\":1,\"required_memory_mb\":1,\"batched_shots_optimization\":false,\"noise\":\"ideal\",\"sample_measure_time\":0.000753671,\"max_memory_mb\":64097,\"runtime_parameter_bind\":false,\"parallel_state_update\":16,\"fusion\":{\"applied\":false,\"max_fused_qubits\":5,\"enabled\":true,\"threshold\":14}},\"time_taken\":0.005054817},{\"shots\":1000,\"success\":true,\"data\":{\"counts\":{\"0x2\":459,\"0x1\":541}},\"meas_level\":2,\"header\":{\"description\":\"|01>+|10> Bell\"},\"status\":\"DONE\",\"circ_id\":0,\"seed_simulator\":1561851370,\"metadata\":{\"time_taken\":0.005142007,\"active_input_qubits\":[0,1],\"method\":\"statevector\",\"remapped_qubits\":false,\"num_clbits\":2,\"input_qubit_map\":[[1,1],[0,0]],\"device\":\"CPU\",\"parallel_shots\":1,\"num_qubits\":2,\"measure_sampling\":true,\"num_bind_params\":1,\"required_memory_mb\":1,\"batched_shots_optimization\":false,\"noise\":\"ideal\",\"sample_measure_time\":0.000487178,\"max_memory_mb\":64097,\"runtime_parameter_bind\":false,\"parallel_state_update\":16,\"fusion\":{\"applied\":false,\"max_fused_qubits\":5,\"enabled\":true,\"threshold\":14}},\"time_taken\":0.005142007}],\"metadata\":{\"time_taken\":0.011327376,\"parallel_experiments\":1,\"max_gpu_memory_mb\":0,\"omp_enabled\":true,\"time_taken_execute\":0.010422079,\"max_memory_mb\":64097,\"time_taken_load_qobj\":0.000817685},\"time_taken\":0.012029886245727539,\"date\":\"2024-02-22T16:29:58.974571\"}", "status": 200, "request": { "txcount": 1, @@ -278,10 +356,10 @@ "Accept": "*/*" }, { - "Host": "s3.us-east.cloud-object-storage.appdomain.cloud" + "Host": "api-qcon.quantum.ibm.com" }, { - "User-Agent": "HTTP.jl/1.6.1" + "User-Agent": "HTTP.jl/1.9.4" }, { "Content-Length": "0" @@ -289,7 +367,7 @@ ], "body": "", "method": "GET", - "target": "/us-east-quantum-computing-user-jobs-prod/result-609131631355905234476870.json?X-Amz-Signature=6bc8a14333784f70a5a633393b85063b80a64906f1fed1cd1832c9102e683f85&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=21ce861c64cc417e9a95f95263ecf8f7%2F20210504%2Fus-east%2Fs3%2Faws4_request&X-Amz-Date=20210504T114546Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host", + "target": "/api/Network/ibm-q/groups/open/projects/main/jobs/runtimeResult/cnbnd1mj1613i2jfch3g", "version": "1.1.0" }, "version": "1.1.0" @@ -297,7 +375,7 @@ { "headers": [ { - "Date": "Tue, 04 May 2021 11:45:46 GMT" + "Date": "Thu, 22 Feb 2024 16:30:05 GMT" }, { "Content-Type": "application/json; charset=utf-8" @@ -309,73 +387,82 @@ "Connection": "keep-alive" }, { - "Set-Cookie": "__cfduid=d54dd06f187de11ee18d84d4220b798711620128746; expires=Thu, 03-Jun-21 11:45:46 GMT; path=/; domain=.quantum-computing.ibm.com; HttpOnly; SameSite=Lax" + "x-xss-protection": "0" }, { - "Vary": "Origin, Accept-Encoding" + "x-frame-options": "SAMEORIGIN" }, { - "Access-Control-Allow-Credentials": "true" + "strict-transport-security": "max-age=15552000; includeSubDomains" }, { - "Access-Control-Expose-Headers": "x-total-count" + "x-download-options": "noopen" }, { - "X-XSS-Protection": "1; mode=block" + "x-content-type-options": "nosniff" }, { - "X-Frame-Options": "SAMEORIGIN" + "surrogate-control": "no-store" }, { - "Strict-Transport-Security": "max-age=15724800; includeSubDomains" + "cache-control": "no-store, no-cache, must-revalidate, proxy-revalidate" }, { - "X-Download-Options": "noopen" + "pragma": "no-cache" }, { - "X-Content-Type-Options": "nosniff" + "expires": "0" }, { - "Surrogate-Control": "no-store" + "vary": "Origin, Accept-Encoding" }, { - "Cache-Control": "no-store, no-cache, must-revalidate, proxy-revalidate" + "access-control-allow-credentials": "true" }, { - "Pragma": "no-cache" + "access-control-expose-headers": "x-total-count" }, { - "Expires": "0" + "uber-trace-id": "a8f62274724f538c:a8f62274724f538c:0:1" }, { - "uber-trace-id": "443a2631d50bcd58:443a2631d50bcd58:0:1" + "content-security-policy": "font-src 'self' https: data: https://1.www.s81c.com;frame-src 'self' https://prepiam.ice.ibmcloud.com https://login.ibm.com;script-src 'self' 'nonce-ac80260a-fcca-45a9-ba50-fba2f5f253c6';default-src 'self';base-uri 'self';block-all-mixed-content;frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src-attr 'none';style-src 'self' https: 'unsafe-inline'" }, { - "X-RateLimit-Limit": "50" + "x-dns-prefetch-control": "off" }, { - "X-RateLimit-Remaining": "49" + "expect-ct": "max-age=0" }, { - "X-RateLimit-Reset": "1620128747" + "x-permitted-cross-domain-policies": "none" }, { - "ETag": "W/\"13-phMW9GX20bWo9DMWrkiHYWVnAa8\"" + "referrer-policy": "no-referrer" }, { - "CF-Cache-Status": "DYNAMIC" + "x-ratelimit-limit": "50" + }, + { + "x-ratelimit-remaining": "49" + }, + { + "x-ratelimit-reset": "1708619406" + }, + { + "etag": "W/\"13-phMW9GX20bWo9DMWrkiHYWVnAa8\"" }, { - "cf-request-id": "09d8cbe42c0000597a74a6c000000001" + "x-envoy-upstream-service-time": "61" }, { - "Expect-CT": "max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\"" + "CF-Cache-Status": "DYNAMIC" }, { "Server": "cloudflare" }, { - "CF-RAY": "64a17c19d9cd597a-IAD" + "CF-RAY": "85989c91d9c57166-DUS" } ], "body": "{\"terminated\":true}", @@ -396,7 +483,7 @@ "Host": "api-qcon.quantum-computing.ibm.com" }, { - "User-Agent": "HTTP.jl/1.6.1" + "User-Agent": "HTTP.jl/1.9.4" }, { "Content-Length": "0" @@ -404,7 +491,7 @@ ], "body": "", "method": "POST", - "target": "/api/Network/ibm-q/Groups/open/Projects/main/Jobs/609131631355905234476870/resultDownloaded", + "target": "/api/Network/ibm-q/Groups/open/Projects/main/Jobs/cnbnd1mj1613i2jfch3g/resultDownloaded", "version": "1.1.0" }, "version": "1.1.0" diff --git a/test/records/status.json b/test/records/status.json index ab72b71..8d6c89d 100644 --- a/test/records/status.json +++ b/test/records/status.json @@ -3,88 +3,97 @@ { "headers": [ { - "Date": "Tue, 04 May 2021 11:35:45 GMT" + "Date": "Thu, 22 Feb 2024 16:30:00 GMT" }, { "Content-Type": "application/json; charset=utf-8" }, { - "Content-Length": "384" + "Content-Length": "439" }, { "Connection": "keep-alive" }, { - "Set-Cookie": "__cfduid=dcaa3d119f70719ea8fac242334a75e111620128145; expires=Thu, 03-Jun-21 11:35:45 GMT; path=/; domain=.quantum-computing.ibm.com; HttpOnly; SameSite=Lax" + "x-xss-protection": "0" }, { - "Vary": "Origin, Accept-Encoding" + "x-frame-options": "SAMEORIGIN" }, { - "Access-Control-Allow-Credentials": "true" + "strict-transport-security": "max-age=15552000; includeSubDomains" }, { - "Access-Control-Expose-Headers": "x-total-count" + "x-download-options": "noopen" }, { - "X-XSS-Protection": "1; mode=block" + "x-content-type-options": "nosniff" }, { - "X-Frame-Options": "SAMEORIGIN" + "surrogate-control": "no-store" }, { - "Strict-Transport-Security": "max-age=15724800; includeSubDomains" + "cache-control": "no-store, no-cache, must-revalidate, proxy-revalidate" }, { - "X-Download-Options": "noopen" + "pragma": "no-cache" }, { - "X-Content-Type-Options": "nosniff" + "expires": "0" }, { - "Surrogate-Control": "no-store" + "vary": "Origin, Accept-Encoding" }, { - "Cache-Control": "no-store, no-cache, must-revalidate, proxy-revalidate" + "access-control-allow-credentials": "true" }, { - "Pragma": "no-cache" + "access-control-expose-headers": "x-total-count" }, { - "Expires": "0" + "uber-trace-id": "f6765c28150355fd:f6765c28150355fd:0:1" }, { - "uber-trace-id": "7ecf79f0c225f108:7ecf79f0c225f108:0:1" + "content-security-policy": "font-src 'self' https: data: https://1.www.s81c.com;frame-src 'self' https://prepiam.ice.ibmcloud.com https://login.ibm.com;script-src 'self' 'nonce-1c8322bf-3c04-40f4-b6fd-b1b0e5c37297';default-src 'self';base-uri 'self';block-all-mixed-content;frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src-attr 'none';style-src 'self' https: 'unsafe-inline'" }, { - "X-RateLimit-Limit": "50" + "x-dns-prefetch-control": "off" }, { - "X-RateLimit-Remaining": "49" + "expect-ct": "max-age=0" }, { - "X-RateLimit-Reset": "1620128147" + "x-permitted-cross-domain-policies": "none" }, { - "ETag": "W/\"180-tFv9ruisBP2mfKOBdoL2zItcTYE\"" + "referrer-policy": "no-referrer" }, { - "CF-Cache-Status": "DYNAMIC" + "x-ratelimit-limit": "50" + }, + { + "x-ratelimit-remaining": "49" + }, + { + "x-ratelimit-reset": "1708619401" + }, + { + "etag": "W/\"1b7-SFRbMsssMLwJxNQnITO/4/qOCTM\"" }, { - "cf-request-id": "09d8c2b9c40000cecc4596a000000001" + "x-envoy-upstream-service-time": "533" }, { - "Expect-CT": "max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\"" + "CF-Cache-Status": "DYNAMIC" }, { "Server": "cloudflare" }, { - "CF-RAY": "64a16d6f9dd3cecc-IAD" + "CF-RAY": "85989c735e027166-DUS" } ], - "body": "{\"kind\":\"q-object-external-storage\",\"backend\":{\"id\":\"5ae875670f020500393162ad\",\"name\":\"ibmq_qasm_simulator\"},\"status\":\"COMPLETED\",\"creationDate\":\"2021-05-04T11:34:58.965Z\",\"hubInfo\":{\"hub\":{\"name\":\"ibm-q\"},\"group\":{\"name\":\"open\"},\"project\":{\"name\":\"main\"}},\"endDate\":\"2021-05-04T11:35:03.089Z\",\"runMode\":\"fairshare\",\"id\":\"609131631355905234476870\",\"userId\":\"5ddc5f2f6b72bd00113d2722\"}", + "body": "{\"id\":\"cnbnd1mj1613i2jfch3g\",\"userId\":\"645a24864b144c39fd11720a\",\"kind\":\"runtime\",\"backend\":{\"name\":\"ibmq_qasm_simulator\"},\"status\":\"COMPLETED\",\"creationDate\":\"2024-02-22T16:29:58.805Z\",\"hubInfo\":{\"hub\":{\"name\":\"ibm-q\"},\"group\":{\"name\":\"open\"},\"project\":{\"name\":\"main\"}},\"tags\":[],\"name\":\"circuit-runner\",\"liveDataEnabled\":false,\"endDate\":\"2024-02-22T16:29:59.015Z\",\"createdBy\":\"local\",\"clientInfo\":{\"name\":\"IBMQClient.jl\",\"version\":null}}", "status": 200, "request": { "txcount": 1, @@ -102,7 +111,7 @@ "Host": "api-qcon.quantum-computing.ibm.com" }, { - "User-Agent": "HTTP.jl/1.6.1" + "User-Agent": "HTTP.jl/1.9.4" }, { "Content-Length": "0" @@ -110,7 +119,7 @@ ], "body": "", "method": "GET", - "target": "/api/Network/ibm-q/Groups/open/Projects/main/Jobs/609131631355905234476870/status/v/1", + "target": "/api/Network/ibm-q/Groups/open/Projects/main/Jobs/cnbnd1mj1613i2jfch3g/status/v/1", "version": "1.1.0" }, "version": "1.1.0" diff --git a/test/records/submit.json b/test/records/submit.json index ac07d13..88f28b7 100644 --- a/test/records/submit.json +++ b/test/records/submit.json @@ -3,88 +3,97 @@ { "headers": [ { - "Date": "Tue, 04 May 2021 11:34:59 GMT" + "Date": "Thu, 22 Feb 2024 16:29:55 GMT" }, { "Content-Type": "application/json; charset=utf-8" }, { - "Content-Length": "939" + "Content-Length": "967" }, { "Connection": "keep-alive" }, { - "Set-Cookie": "__cfduid=d53e4ee193ab30bcc9ff56f6bf2bae88d1620128098; expires=Thu, 03-Jun-21 11:34:58 GMT; path=/; domain=.quantum-computing.ibm.com; HttpOnly; SameSite=Lax" + "x-xss-protection": "0" }, { - "Vary": "Origin, Accept-Encoding" + "x-frame-options": "SAMEORIGIN" }, { - "Access-Control-Allow-Credentials": "true" + "strict-transport-security": "max-age=15552000; includeSubDomains" }, { - "Access-Control-Expose-Headers": "x-total-count" + "x-download-options": "noopen" }, { - "X-XSS-Protection": "1; mode=block" + "x-content-type-options": "nosniff" }, { - "X-Frame-Options": "SAMEORIGIN" + "surrogate-control": "no-store" }, { - "Strict-Transport-Security": "max-age=15724800; includeSubDomains" + "cache-control": "no-store, no-cache, must-revalidate, proxy-revalidate" }, { - "X-Download-Options": "noopen" + "pragma": "no-cache" }, { - "X-Content-Type-Options": "nosniff" + "expires": "0" }, { - "Surrogate-Control": "no-store" + "vary": "Origin, Accept-Encoding" }, { - "Cache-Control": "no-store, no-cache, must-revalidate, proxy-revalidate" + "access-control-allow-credentials": "true" }, { - "Pragma": "no-cache" + "access-control-expose-headers": "x-total-count" }, { - "Expires": "0" + "uber-trace-id": "20f902b02ec68758:20f902b02ec68758:0:1" }, { - "uber-trace-id": "5540422e5ffd71d7:5540422e5ffd71d7:0:1" + "content-security-policy": "font-src 'self' https: data: https://1.www.s81c.com;frame-src 'self' https://prepiam.ice.ibmcloud.com https://login.ibm.com;script-src 'self' 'nonce-06b15f9f-892e-4003-a488-eb8fe6ae0741';default-src 'self';base-uri 'self';block-all-mixed-content;frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src-attr 'none';style-src 'self' https: 'unsafe-inline'" }, { - "X-RateLimit-Limit": "50" + "x-dns-prefetch-control": "off" }, { - "X-RateLimit-Remaining": "49" + "expect-ct": "max-age=0" }, { - "X-RateLimit-Reset": "1620128100" + "x-permitted-cross-domain-policies": "none" }, { - "ETag": "W/\"3ab-P0q8zD9hxB79xAffUyDSZgMaTyY\"" + "referrer-policy": "no-referrer" }, { - "CF-Cache-Status": "DYNAMIC" + "x-ratelimit-limit": "50" + }, + { + "x-ratelimit-remaining": "49" + }, + { + "x-ratelimit-reset": "1708619396" + }, + { + "etag": "W/\"3c7-nlSZHI6P2MTegGsjaKVKho9JTxA\"" }, { - "cf-request-id": "09d8c201a70000cecc8caa1000000001" + "x-envoy-upstream-service-time": "412" }, { - "Expect-CT": "max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\"" + "CF-Cache-Status": "DYNAMIC" }, { "Server": "cloudflare" }, { - "CF-RAY": "64a16c48feffcecc-IAD" + "CF-RAY": "85989c52bf577166-DUS" } ], - "body": "{\"kind\":\"q-object-external-storage\",\"backend\":{\"id\":\"5ae875670f020500393162ad\",\"name\":\"ibmq_qasm_simulator\"},\"status\":\"CREATING\",\"creationDate\":\"2021-05-04T11:34:58.965Z\",\"objectStorageInfo\":{\"uploadUrl\":\"https://s3.us-east.cloud-object-storage.appdomain.cloud/us-east-quantum-computing-user-jobs-prod/qObject-609131631355905234476870.json?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=21ce861c64cc417e9a95f95263ecf8f7%2F20210504%2Fus-east%2Fs3%2Faws4_request&X-Amz-Date=20210504T113459Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=614c42bbd3a7b23aafb10c7e66843134551b3340c66638667c23df88f0638da4\",\"maxJobSizeInBytes\":100000000},\"deleted\":false,\"allowObjectStorage\":true,\"timePerStep\":{\"CREATING\":\"2021-05-04T11:34:58.965Z\"},\"hubInfo\":{\"hub\":{\"name\":\"ibm-q\",\"priority\":1},\"group\":{\"name\":\"open\",\"priority\":1},\"project\":{\"name\":\"main\",\"priority\":1}},\"id\":\"609131631355905234476870\",\"userId\":\"5ddc5f2f6b72bd00113d2722\"}", + "body": "{\"backend\":{\"name\":\"ibmq_qasm_simulator\"},\"allowObjectStorage\":true,\"hubInfo\":{\"hub\":{\"name\":\"ibm-q\"},\"group\":{\"name\":\"open\"},\"project\":{\"name\":\"main\"}},\"liveDataEnabled\":false,\"kind\":\"q-object-external-storage\",\"userId\":\"645a24864b144c39fd11720a\",\"status\":\"CREATED\",\"timePerStep\":{\"CREATED\":\"2024-02-22T16:29:55.138Z\"},\"creationDate\":\"2024-02-22T16:29:55.138Z\",\"provider\":{\"hub\":\"ibm-q\",\"group\":\"open\",\"project\":\"main\",\"backend\":\"ibmq_qasm_simulator\"},\"id\":\"65d77683c5af71267b2cc634\",\"objectStorageInfo\":{\"uploadUrl\":\"https://s3.us-east.cloud-object-storage.appdomain.cloud/us-east-quantum-computing-user-jobs-prod/qObject-65d77683c5af71267b2cc634.json?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=475dae915f3c4ddaaeb2f3a93929a94d%2F20240222%2Fus-east%2Fs3%2Faws4_request&X-Amz-Date=20240222T162955Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=c5b6d07e3551352ac71e18ac77e7ee951477a9e020f5284f5608c692917f391e\",\"maxJobSizeInBytes\":100000000}}", "status": 200, "request": { "txcount": 1, @@ -105,7 +114,7 @@ "Host": "api-qcon.quantum-computing.ibm.com" }, { - "User-Agent": "HTTP.jl/1.6.1" + "User-Agent": "HTTP.jl/1.9.4" }, { "Content-Length": "68" @@ -121,10 +130,10 @@ { "headers": [ { - "Date": "Tue, 04 May 2021 11:35:00 GMT" + "Date": "Thu, 22 Feb 2024 16:29:57 GMT" }, { - "X-Clv-Request-Id": "e1a53b36-3b8a-4532-9996-6885ee25e3fb" + "X-Clv-Request-Id": "c13006a7-a71a-40ab-bf72-e5303e57fbc1" }, { "Server": "Cleversafe" @@ -133,7 +142,7 @@ "X-Clv-S3-Version": "2.5" }, { - "x-amz-request-id": "e1a53b36-3b8a-4532-9996-6885ee25e3fb" + "x-amz-request-id": "c13006a7-a71a-40ab-bf72-e5303e57fbc1" }, { "ETag": "\"4079af9dd1e69b3cd4168d72ca06f9b3\"" @@ -160,7 +169,7 @@ "Host": "s3.us-east.cloud-object-storage.appdomain.cloud" }, { - "User-Agent": "HTTP.jl/1.6.1" + "User-Agent": "HTTP.jl/1.9.4" }, { "Content-Length": "643" @@ -168,7 +177,7 @@ ], "body": "{\"qobj_id\":\"bell_Qobj_07272018\",\"type\":\"QASM\",\"schema_version\":\"1.0.0\",\"experiments\":[{\"header\":{\"description\":\"|11>+|00> Bell\"},\"instructions\":[{\"name\":\"u2\",\"qubits\":[0],\"params\":[0.0,3.141592653589793]},{\"name\":\"cx\",\"qubits\":[0,1]},{\"name\":\"measure\",\"qubits\":[0,1],\"memory\":[0,1]}]},{\"header\":{\"description\":\"|01>+|10> Bell\"},\"instructions\":[{\"name\":\"u2\",\"qubits\":[0],\"params\":[0.0,3.141592653589793]},{\"name\":\"cx\",\"qubits\":[0,1]},{\"name\":\"u3\",\"qubits\":[0],\"params\":[3.141592653589793,0.0,3.141592653589793]},{\"name\":\"measure\",\"qubits\":[0,1],\"memory\":[0,1]}]}],\"header\":{\"description\":\"Bell states\"},\"config\":{\"shots\":1000,\"memory_slots\":2}}", "method": "PUT", - "target": "/us-east-quantum-computing-user-jobs-prod/qObject-609131631355905234476870.json?X-Amz-Signature=614c42bbd3a7b23aafb10c7e66843134551b3340c66638667c23df88f0638da4&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=21ce861c64cc417e9a95f95263ecf8f7%2F20210504%2Fus-east%2Fs3%2Faws4_request&X-Amz-Date=20210504T113459Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host", + "target": "/us-east-quantum-computing-user-jobs-prod/qObject-65d77683c5af71267b2cc634.json?X-Amz-Signature=c5b6d07e3551352ac71e18ac77e7ee951477a9e020f5284f5608c692917f391e&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=475dae915f3c4ddaaeb2f3a93929a94d%2F20240222%2Fus-east%2Fs3%2Faws4_request&X-Amz-Date=20240222T162955Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host", "version": "1.1.0" }, "version": "1.1.0" @@ -176,88 +185,97 @@ { "headers": [ { - "Date": "Tue, 04 May 2021 11:35:00 GMT" + "Date": "Thu, 22 Feb 2024 16:29:59 GMT" }, { "Content-Type": "application/json; charset=utf-8" }, { - "Content-Length": "567" + "Content-Length": "464" }, { "Connection": "keep-alive" }, { - "Set-Cookie": "__cfduid=d0de5a02ba0166a70fc1963fc3e1eca021620128100; expires=Thu, 03-Jun-21 11:35:00 GMT; path=/; domain=.quantum-computing.ibm.com; HttpOnly; SameSite=Lax" + "x-xss-protection": "0" }, { - "Vary": "Origin, Accept-Encoding" + "x-frame-options": "SAMEORIGIN" }, { - "Access-Control-Allow-Credentials": "true" + "strict-transport-security": "max-age=15552000; includeSubDomains" }, { - "Access-Control-Expose-Headers": "x-total-count" + "x-download-options": "noopen" }, { - "X-XSS-Protection": "1; mode=block" + "x-content-type-options": "nosniff" }, { - "X-Frame-Options": "SAMEORIGIN" + "surrogate-control": "no-store" }, { - "Strict-Transport-Security": "max-age=15724800; includeSubDomains" + "cache-control": "no-store, no-cache, must-revalidate, proxy-revalidate" }, { - "X-Download-Options": "noopen" + "pragma": "no-cache" }, { - "X-Content-Type-Options": "nosniff" + "expires": "0" }, { - "Surrogate-Control": "no-store" + "vary": "Origin, Accept-Encoding" }, { - "Cache-Control": "no-store, no-cache, must-revalidate, proxy-revalidate" + "access-control-allow-credentials": "true" }, { - "Pragma": "no-cache" + "access-control-expose-headers": "x-total-count" }, { - "Expires": "0" + "uber-trace-id": "1fb9e1b9eb3a2573:1fb9e1b9eb3a2573:0:1" }, { - "uber-trace-id": "53414305b77d3168:53414305b77d3168:0:1" + "content-security-policy": "font-src 'self' https: data: https://1.www.s81c.com;frame-src 'self' https://prepiam.ice.ibmcloud.com https://login.ibm.com;script-src 'self' 'nonce-d04998b7-3934-4753-92e8-3a097a930f87';default-src 'self';base-uri 'self';block-all-mixed-content;frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src-attr 'none';style-src 'self' https: 'unsafe-inline'" }, { - "X-RateLimit-Limit": "50" + "x-dns-prefetch-control": "off" }, { - "X-RateLimit-Remaining": "49" + "expect-ct": "max-age=0" }, { - "X-RateLimit-Reset": "1620128102" + "x-permitted-cross-domain-policies": "none" }, { - "ETag": "W/\"237-Avj8v5+dNzWg4MpzW98HDpjBFrU\"" + "referrer-policy": "no-referrer" }, { - "CF-Cache-Status": "DYNAMIC" + "x-ratelimit-limit": "50" + }, + { + "x-ratelimit-remaining": "49" + }, + { + "x-ratelimit-reset": "1708619399" + }, + { + "etag": "W/\"1d0-76/Bsp3A9g0SS3voi4vSk7BlxMU\"" }, { - "cf-request-id": "09d8c208ed0000cecca1934000000001" + "x-envoy-upstream-service-time": "1215" }, { - "Expect-CT": "max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\"" + "CF-Cache-Status": "DYNAMIC" }, { "Server": "cloudflare" }, { - "CF-RAY": "64a16c54a83acecc-IAD" + "CF-RAY": "85989c6378197166-DUS" } ], - "body": "{\"job\":{\"kind\":\"q-object-external-storage\",\"backend\":{\"id\":\"5ae875670f020500393162ad\",\"name\":\"ibmq_qasm_simulator\"},\"status\":\"CREATED\",\"creationDate\":\"2021-05-04T11:34:58.965Z\",\"deleted\":false,\"allowObjectStorage\":true,\"summaryData\":{\"size\":{\"input\":643}},\"timePerStep\":{\"CREATING\":\"2021-05-04T11:34:58.965Z\",\"CREATED\":\"2021-05-04T11:35:00.883Z\"},\"ip\":{\"ip\":\"10.93.25.139\"},\"hubInfo\":{\"hub\":{\"name\":\"ibm-q\",\"priority\":1},\"group\":{\"name\":\"open\",\"priority\":1},\"project\":{\"name\":\"main\",\"priority\":1}},\"id\":\"609131631355905234476870\",\"userId\":\"5ddc5f2f6b72bd00113d2722\"}}", + "body": "{\"job\":{\"shots\":null,\"backend\":{\"name\":\"ibmq_qasm_simulator\"},\"kind\":\"q-object-external-storage\",\"status\":\"CREATED\",\"creationDate\":\"2024-02-22T16:29:55.270Z\",\"deleted\":false,\"allowObjectStorage\":true,\"summaryData\":{\"size\":{\"input\":0}},\"timePerStep\":{\"CREATED\":\"2024-02-22T16:29:55.138Z\"},\"hubInfo\":{\"hub\":{\"name\":\"ibm-q\"},\"group\":{\"name\":\"open\"},\"project\":{\"name\":\"main\"}},\"id\":\"cnbnd1mj1613i2jfch3g\",\"userId\":\"645a24864b144c39fd11720a\",\"name\":null,\"tags\":null}}", "status": 200, "request": { "txcount": 1, @@ -275,7 +293,7 @@ "Host": "api-qcon.quantum-computing.ibm.com" }, { - "User-Agent": "HTTP.jl/1.6.1" + "User-Agent": "HTTP.jl/1.9.4" }, { "Content-Length": "0" @@ -283,7 +301,7 @@ ], "body": "", "method": "POST", - "target": "/api/Network/ibm-q/Groups/open/Projects/main/Jobs/609131631355905234476870/jobDataUploaded", + "target": "/api/Network/ibm-q/Groups/open/Projects/main/Jobs/65d77683c5af71267b2cc634/jobDataUploaded", "version": "1.1.0" }, "version": "1.1.0" diff --git a/test/runtests.jl b/test/runtests.jl index caf8ed5..0a2c4e0 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -8,3 +8,9 @@ end @testset "adapters" begin include("adapters.jl") end + +# this needs stdin to be a Base.TTY which is only the case when in the REPL (typeof(stdin) = IOStream when executed in a script). +# if we want to run this test, a workaround is needed (not sure what to do). +# @testset "menu" begin +# include("menu.jl") +# end